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 surcsurc at 2012-04-19 12:27:41 on Problem 1304
这道题我用stringstream来辅助读入的
注意个别数据行最后都有个空格。无法用cin.get()解决cin不读取换行的问题
每行数据都用cin.getline() + stringstream处理就好

最后就这么一次ac了

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