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

Re:题意不清 应该这样

Posted by 598100511 at 2009-08-12 11:23:10 on Problem 1008
In Reply To:题意不清 应该这样 Posted by:yanzhengfei at 2009-07-29 16:32:06
while(n--)
	{
		scanf("%d. %s %d",&dh,s,&yh);
		for(i=0;i<19;i++)
			if(!strcmp(str[i],s)) break;
		days=365*yh+i*20+dh;
		yt=days/260;
		days=days-yt*260;
	    dt=days%13+1;
		k=days%20;
		printf("%d %s %d\n",dt,nt[k],yt);
	}
这段代码为什么输入输出不能用"cin",'cout"呢

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