摘要:
Problem Description求A^B的最后三位数表示的整数。说明:A^B的含义是“A的B次方”Input输入数据包含多个测试实例,每个实例占一行,由两个正整数A和B组成(1 2 3 int main(){ 4 int a; 5 int b; 6 int resul... 阅读全文
摘要:
Problem Description参加过上个月月赛的同学一定还记得其中的一个最简单的题目,就是{A}+{B},那个题目求的是两个集合的并集,今天我们这个A-B求的是两个集合的差,就是做集合的减法运算。(当然,大家都知道集合的定义,就是同一个集合中不会有两个相同的元素,这里还是提醒大家一下)呵呵,... 阅读全文
摘要:
描述现在给你一个正整数N,要你快速的找出在2.....N这些数里面所有的素数。输入给出一个正整数数N(N 2 #include 3 #include 4 #define N 2000001 5 6 int main(){ 7 int i; 8 int j; 9 ch... 阅读全文
摘要:
Problem DescriptionIn many applications very large integers numbers arerequired. Some of these applications are using keys for secure transmission ofd... 阅读全文
摘要:
输入第一行有一个整数m(1 2 #include 3 #define N 1000001 4 5 int main(){ 6 int T; 7 char number[N]; 8 int temp; 9 int i;10 int length;11 ... 阅读全文
摘要:
描述相传韩信才智过人,从不直接清点自己军队的人数,只要让士兵先后以三人一排、五人一排、七人一排地变换队形,而他每次只掠一眼队伍的排尾就知道总人数了。输入3个非负整数a,b,c ,表示每种队形排尾的人数(a 2 3 int main(){ 4 int a; 5 int b; 6 ... 阅读全文
摘要:
Problem DescriptionContest time again! How excited it is to see balloonsfloating around. But to tell you a secret, the judges' favorite time isguessin... 阅读全文
摘要:
Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at wh... 阅读全文
摘要:
Problem DescriptionProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In... 阅读全文
摘要:
Problem DescriptionGiven a string containing only 'A' - 'Z', we could encode it using the following method:1. Each sub-string containing k same charac... 阅读全文