上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: 传送门 简单题 1 #include<bits/stdc++.h> 2 using namespace std; 3 struct node 4 { 5 double dan,weight; 6 }a[1005]; 7 bool cmp(node x,node y) 8 { 9 return x.d 阅读全文
posted @ 2018-11-18 20:55 柠檬加糖 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 传送门 对分母求一下逆元,把除法取模变成乘法取模,逆元介绍看这里 这种方法只适合模为质数的情况 1 #include<bits/stdc++.h> 2 using namespace std; 3 const long long mod=1e9+7; 4 long long quickpow(lon 阅读全文
posted @ 2018-11-18 15:41 柠檬加糖 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 题面 记录一下。。。连续得两个自然数互质,这题再特判一下1的情况 1 #include<bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 long long n; 6 while(~scanf("%lld",&n)) 7 { 8 if( 阅读全文
posted @ 2018-11-17 23:05 柠檬加糖 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题面 输入只有5位,所以转化为long long类型用快速幂取模 前面补0的写法printf("%05lld\n",ans);如果ans不足5位会在前面补0 1 #include<bits/stdc++.h> 2 using namespace std; 3 long long mod_exp(lo 阅读全文
posted @ 2018-11-17 17:06 柠檬加糖 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 题面 看成26进制,把较小的那个字符串加1 strcmp(s1,s2)s1和s2有大小时,不一定都是返回1或者-1.。。。。这个地方wa了好几次没有发现 1 #include<bits/stdc++.h> 2 using namespace std; 3 char s1[100010],s2[100 阅读全文
posted @ 2018-11-17 15:42 柠檬加糖 阅读(276) 评论(0) 推荐(0) 编辑
摘要: N! Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 94583 Accepted Submission(s): 28107 Problem 阅读全文
posted @ 2018-11-17 11:31 柠檬加糖 阅读(435) 评论(0) 推荐(0) 编辑
摘要: Treasure the new start, freshmen! Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 23047 Accepted 阅读全文
posted @ 2018-11-16 16:32 柠檬加糖 阅读(494) 评论(0) 推荐(0) 编辑
摘要: "红色病毒"问题 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9329 Accepted Submission(s): 3816 Proble 阅读全文
posted @ 2018-11-16 00:54 柠檬加糖 阅读(303) 评论(0) 推荐(0) 编辑
摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=92 输入一些单词,找出所有符合条件的单词:该单词不能通过字母重排,得到输入文本中的另外一个单词。判断条件是 阅读全文
posted @ 2018-11-15 21:06 柠檬加糖 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 这一行idea提示找不到db.properties这个文件原因是idea和myeclipse有点不一样,需要将包含这个文件夹的文件设置为源文件夹 将这个文件夹设置为Resource Root,因为我已经设置过了,所以只有Unmark这个选项 阅读全文
posted @ 2018-11-15 20:23 柠檬加糖 阅读(782) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页