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

求代码分析问题1298为何老出错

Posted by fzq202 at 2011-07-15 14:33:52 on Problem 1298
#include<stdio.h>
#include<stdlib.h>
char n,buf[999];
int i;
main()
{
	for(;scanf("START\n"),gets(buf);)
	{
		scanf("END");
		if(!strcmp(buf,"ENDOFINPUT"))break;
		for(i=0;n=buf[i],n>0;++i)
		{
			putchar(n%91<65?n:n%70%44+65);
		}
		puts("");
	}
}

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