摘要: Chinese ZodiacTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s):... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(126) 评论(0) 推荐(0)
摘要: Description输入一串字符(长度不超过100)和一个正整数k,将其中的英文字母加密并输出加密后的字符串,非英文字母不变。加密思想:将每个字母c加一个序数k,即用它后面的第k个字母代替,变换公式:c=c+k。如果字母为z,则后一个字母是a,也就是字母字符形成一个圆。Input输入第一行是若干字... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(308) 评论(0) 推荐(0)
摘要: /* 原作者: glq2000 /* 参考资料: http://www.matrix67.com/blog/archives/115 */ #include #include char a[] = "abababaababacb"; ... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(120) 评论(0) 推荐(0)
摘要: Description 求A^B的最后三位数表示的整数(1#includeint main(void){ int n; int a, b, i, m, T; scanf("%d", &T); while(T--) { n = 1; ... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(137) 评论(0) 推荐(0)
摘要: 1: 如果while(scanf("%d%d"),&a, &b)超时,则while(scanf("%d%d"),&a, &b)!=EOF)则有可能通过。 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(149) 评论(0) 推荐(0)
摘要: Chinese ZodiacTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submissio... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(119) 评论(0) 推荐(0)
摘要: 题意概括:此题为一道模拟题,根据题意进行模拟即可。解题思路: 1:此题求立体的表面积,只需算出每个面的表面积即可 2:表面积包括顶面和侧面 3:让每一个立方体与其前后左右的立方体的大小进行比较,多出来的部分需要计算其表面积。错误原因: 1: 错误地将二重循环的初始条件从零开始。因... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(113) 评论(0) 推荐(0)
摘要: 航院1009 FatMouse’s Trade 解题报告Problem Description FatMouse prepared M pounds ofcat food, ready to trade with the cats guarding the warehouse con... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(225) 评论(0) 推荐(0)
摘要: 例子:Fibonacci数列如果将一个变量定义为局部变量,比如i在这个代码里:#includeint f[1000]; void fibonacci(int n){ int i; f[0] = 1; f[1] = 1; for(i = 2; i int f[1... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(178) 评论(0) 推荐(0)
摘要: B:train seats reservation时间限制:1000ms 内存限制:131072KYou are given a list of train stations, say from the station 1 to the station 100. The passen... 阅读全文
posted @ 2017-10-13 19:42 moonlight987 阅读(103) 评论(0) 推荐(0)