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 polisan at 2007-01-30 19:12:02
是不是 scanf()和cin>> 两个不能混用啊?
刚才过1037时,使用以下
"
void main()
{
	int t;
	cin>>t;
	//scanf("%d", &t);
	fillMap();
	while(t--){              
	    scanf("%d %I64d",&n,&c);
   ......."
就会WA
而用
"
void main()
{
	int t;
	//cin>>t;
	scanf("%d", &t);
	fillMap();
	while(t--){              
	    scanf("%d %I64d",&n,&c);
.............."
就过了,这是什么原因啊?
谢谢啦

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