- 1、本文档共18页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
华南师范大学ACM初赛题
注意事项:
题目一共有10个
题目有严格的时间限制,请做好程序的优化
题目采用标准读入,标准输出
If the problem is a+b,Then the code is:
C: #include stdio.h
int main(void) {
int a, b;
while(scanf(%d%d, a, b)!=EOF)
printf(%d, a + b);
return 0;
}
C++: #include iostream
using namespace std;
int main(void) {
int a, b;
while(cin a b) cout a + b;
return 0;
}
Java : import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
System.out.println(a + b); } }
4, 即时的排名和各队解题情况,可访问192.168.10.235/summary.html
5, 比赛中不能使用电子设备,如U盘、手机等,一旦发现,立即取消比赛资格
6, 登录PC^2,单击pc2team.bat ,用户名和密码皆为team***(***为你们队伍编号)
Problem A
Time Limit: 1000 mSec????Memory Limit : 65535 KB
Problem Description
The algorithm of matching String is based knowledge of ACMer,including Rabin-Karp, Knuth-Morris-Pratt , and AC automaton etc. Our Fat LYF has learned them in heart well , but “Transforming letters from Upper case to lower case,or lower case to Upper case, which depends on the letter given” this problem daunts him. As a smart programmer, you can solve it without doubt.
Input
Multiple test cases, for each case, you’ve got only one letter as an input. Input terminated by EOF.
Output
Output one letter per line for each case.
Sample Input
a
Sample Output
A
Problem B
Time Limit: 1000 mSec????Memory Limit : 65535 KB
Problem Description
This is a problem you can find easily in your C/C++ book. Given the lengths of three segments, if those segments could form a triangle, tell the square of the triangle , otherwise just output揈rror?
asInput
Multiple test cases ,Three numbers a,b,c in Integer Type.(0a,b,c=108)
Output
The required square value(rounded to integer) or “Error”.
Sample Input
3 4 5
Sample Output
6
Problem C
Time Limit: 1000 mSec????Memory Limit : 65535 KB
Problem Description
This is also a problem you can find easily in your
文档评论(0)