上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 31 下一页
摘要: 描述LN想要知道大家的小学数学好不好。现在他想让你求出几个数的和。你能搞定么?输入多组测试数据一组测试数据一行。输出一个数sum,表示结果。(保证在 int 范围内)样例输入2 3 55 6 7 81 2 3 4 5 6 7 8 9 10样例输出102655代码如下这道题考察的点很清晰,就是对输入数... 阅读全文
posted @ 2014-12-02 10:55 NYNU_ACM 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 描述 In this problem, you are given two integers L and R, and your task is to calculate the sum of all the number's square between L and R(inclusive).输... 阅读全文
posted @ 2014-12-02 10:27 NYNU_ACM 阅读(154) 评论(0) 推荐(0) 编辑
摘要: +-字符串时间限制:1000 ms | 内存限制:65535 KB难度:1描述 Shiva得到了两个只有加号和减号的字符串,字串长度相同。Shiva一次可以把一个加号和它相邻的减号交换。他想知道最少需要多少次操作才能把第一个字符串变换成第二个字符串。你现在要去帮助他完成那个这个问题。输入多组测试数据... 阅读全文
posted @ 2014-12-01 18:02 NYNU_ACM 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1198: 数轴Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 3 Solved: 1[Submit][Status][Web Board]DescriptionJohn想抓到一头牛, John在一个数轴的一个位子X,牛在数轴的另一个位子Y。但John... 阅读全文
posted @ 2014-12-01 10:30 NYNU_ACM 阅读(164) 评论(0) 推荐(0) 编辑
摘要: DescriptionA friend of you is doing research on theTraveling Knight Problem (TKP) where you are to find the shortest closed tourof knight moves that v... 阅读全文
posted @ 2014-11-30 21:21 NYNU_ACM 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Problem G: If We Were a Child AgainTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 18 Solved: 14[Submit][Status][Web Board]DescriptionThe ProblemThe fir... 阅读全文
posted @ 2014-11-30 12:25 NYNU_ACM 阅读(161) 评论(0) 推荐(0) 编辑
摘要: DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the na... 阅读全文
posted @ 2014-11-29 21:28 NYNU_ACM 阅读(255) 评论(0) 推荐(0) 编辑
摘要: //之前的代码一直是RuntimeError,,没有考虑到low越界,low最小为0//错误代码#include#includeint main(){ int n,t,low,high,i; char a[10000],s[10000]; scanf("%d",&n); while(n--) { ... 阅读全文
posted @ 2014-11-27 21:24 NYNU_ACM 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 描述 现在给你两个数 n 和 p ,让你求出 p 的开 n 次方。输入每组数据包含两个数n和p。当n和p都为0时表示输入结束。(1#include#include int main(){ double n,p,t; while(scanf("%lf%lf",&n,&p)!=EOF) { if(n=... 阅读全文
posted @ 2014-11-27 21:03 NYNU_ACM 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 描述 I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.A,B must be positive.输入The first line o... 阅读全文
posted @ 2014-11-27 20:28 NYNU_ACM 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 31 下一页