文件名称:A_xuanba
-
所属分类:
- 标签属性:
- 上传时间:2014-06-13
-
文件大小:5.92kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
第四届华为杯程序设计竞赛选拔赛A题。问题输入
输入包括多个测试用例,首先给出测试用例数N,接着给出N个测试用例。
每一个测试用例包括1行,依次给出评委的投票,代表投票的数字1或2之间没有空格。
N为正整数,N≤1000。
问题输出
输出包括多行,对于每个测试用例输出一行,给出参赛团体1和参赛团体2之间的胜负关系,具体输出1>2,或1<2,或1=2,其含义如下:
● 1>2 表示参赛团体1胜利
● 1<2表示参赛团体2胜利
● 1=2表示参赛团体1和参赛团体2打平
样例输入
3
12
112
122
样例输出
1=2
1>2
1<2
-Huawei Cup fourth qualifying Programming Contest A title. Problem input
Inputs include multiple test cases, test cases given first number N, then given N test cases.
Including a line for each test case, given the judges turn to vote, there is no space between the figures represent 1 or 2 votes.
N is a positive integer, N ≤ 1000.
Problem Output
The output includes multiple lines, one line of output for each test case, given the outcome of the relationship between two participating groups between 1 and participating groups, the specific output 1> 2, or 1 <2, or 1 = 2, and its meaning is as follows:
● 1> 2 represents a victory of participating organizations
● 1 <2 2 victory, said participating groups
● 1 = 2 means that participating organizations participating groups 1 and 2 tie
Sample Input
3
12
112
122
Sample Output
A = 2
1> 2
1 <2
输入包括多个测试用例,首先给出测试用例数N,接着给出N个测试用例。
每一个测试用例包括1行,依次给出评委的投票,代表投票的数字1或2之间没有空格。
N为正整数,N≤1000。
问题输出
输出包括多行,对于每个测试用例输出一行,给出参赛团体1和参赛团体2之间的胜负关系,具体输出1>2,或1<2,或1=2,其含义如下:
● 1>2 表示参赛团体1胜利
● 1<2表示参赛团体2胜利
● 1=2表示参赛团体1和参赛团体2打平
样例输入
3
12
112
122
样例输出
1=2
1>2
1<2
-Huawei Cup fourth qualifying Programming Contest A title. Problem input
Inputs include multiple test cases, test cases given first number N, then given N test cases.
Including a line for each test case, given the judges turn to vote, there is no space between the figures represent 1 or 2 votes.
N is a positive integer, N ≤ 1000.
Problem Output
The output includes multiple lines, one line of output for each test case, given the outcome of the relationship between two participating groups between 1 and participating groups, the specific output 1> 2, or 1 <2, or 1 = 2, and its meaning is as follows:
● 1> 2 represents a victory of participating organizations
● 1 <2 2 victory, said participating groups
● 1 = 2 means that participating organizations participating groups 1 and 2 tie
Sample Input
3
12
112
122
Sample Output
A = 2
1> 2
1 <2
(系统自动生成,下载前可以参看下载内容)
下载文件列表
A_xuanba.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.