随笔分类 -  思维题

摘要:题面 记录一下。。。连续得两个自然数互质,这题再特判一下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 柠檬加糖 阅读(177) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/zfq17796515982/article/details/83051495 题意:解方程:a-(a^x)-x=0 给出a的值,要求计算解(非负)的个数 题解:需要^和 - 起到相同的效果。 1^1=0 1-1=0 1^0=1 1-0=1 0^0=0 0 阅读全文
posted @ 2018-11-10 20:56 柠檬加糖 阅读(293) 评论(0) 推荐(0)
摘要:产生冠军 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22557 Accepted Submission(s): 10249 Problem 阅读全文
posted @ 2018-11-03 13:07 柠檬加糖 阅读(226) 评论(0) 推荐(0)
摘要:子串查询 Time Limit: 3500/3000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 835 Accepted Submission(s): 409 Problem De 阅读全文
posted @ 2018-10-09 15:19 柠檬加糖 阅读(162) 评论(0) 推荐(0)
摘要:B. Maximum Sum of Digits time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output You are given a 阅读全文
posted @ 2018-10-09 00:50 柠檬加糖 阅读(326) 评论(0) 推荐(0)