上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 问题:给出2个数M和N(M using namespace std;typedef long long ll;int exgcd(int a,int b,int &x,int &y){ if(b==0) { x... 阅读全文
posted @ 2018-07-25 19:27 外号班长 阅读(78) 评论(0) 推荐(0) 编辑
摘要: A/BTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s):... 阅读全文
posted @ 2018-07-25 19:12 外号班长 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Input测试输入包含若干测试用例。每个测试用例的第1行包含两个整数 N (#include #include #include using namespace std;struct Student{ strin... 阅读全文
posted @ 2018-04-27 09:45 外号班长 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1234Problem Description每天第一个到机房的人要把门打开,最后一个离开的人要把门关好。现有一堆杂乱... 阅读全文
posted @ 2018-04-19 22:20 外号班长 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 参照HPUOJ1163题: 题目描述给定两个整数A和B,让你求出A+B的值。输入第一行输入一个整数T,代表有T组测试数据。每组数据占两行,第一行输入一个整数A,第二行输入一个整数B。注:1 #include ... 阅读全文
posted @ 2018-04-16 22:10 外号班长 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/problemset/problem/299/A因为最大的数为十的九次方,所以我用了vector(根据输入的数据来分配相应的空间)来进行数据的存储和排序。代码... 阅读全文
posted @ 2018-04-14 20:57 外号班长 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/contest/382/problem/A简要说明题目:输入一个字符串,并且含有字符“|”一个(除此之外输入只含有大写字母),表示分隔线,在分割线两边大写字母... 阅读全文
posted @ 2018-04-14 20:35 外号班长 阅读(127) 评论(0) 推荐(0) 编辑
摘要: There is a hill with n holes around. The holes are signed from 0 to n-1. A rabbit must hide in one of the ... 阅读全文
posted @ 2018-04-13 11:43 外号班长 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2044这种题个人觉得就是找规律,把数据多列出来几个,你会发现得到的数列跟Fibonacci数列十分相像。。。当然,做... 阅读全文
posted @ 2018-04-12 11:28 外号班长 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 问题链接:http://acm.hdu.edu.cn/showproblem.php?pid=2043代码:#include #include #include using namespace std;int m... 阅读全文
posted @ 2018-04-11 21:15 外号班长 阅读(129) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页