Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
那是你程序低级bug....In Reply To:while(scanf("%s",str)!=EOF)会是WA而while(cin>>str)就AC Posted by:zentropy at 2008-02-28 17:04:59 > WA了好几次 > 后来想是不是因为scanf的时候ctrl-z要两次的问题,就改成cin,然后就AC了,郁闷 > > (1)scanf的这种形式在POJ上不能用的么?应该其他地方也是这么用的,好像没问题 > (2)为什么我在VC++6.0下,scanf要两次ctrl-z,而cin只要一次? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator