现在的位置: 首页 > 综合 > 正文

ZOJ 2830 Champion of the Swordsmanship

2013年10月19日 ⁄ 综合 ⁄ 共 217字 ⁄ 字号 评论关闭
#include <stdio.h>
int main()
{
	int n;
	for (;;)
	{
		scanf("%d",&n);
		if(!n)
			break;
		if(n==3)		printf("1/n");
		else if(n==4||n==5)		printf("2/n");
		else printf("%d/n",n/2);
	}
	return 0;
}

http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1830

抱歉!评论已关闭.