Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

一些小东西

Posted by noyeya at 2008-10-10 12:43:33 on Problem 1002
若你把数据保存为整数 输出时请注意0填充 即000-0031  可能会输成  0-  31 
 #include<iomanip>  
cout<<setfill('0') 

c++ stl 有排序方法 sort

尽量使用 scanf printf
使用
int map[]={2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9};
这样映射的方法速度快一些

希望大家一起补充 多提建议 一起优化程序    

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator