随笔分类 -  Atcoder

摘要:AtCoder Regular Contest 106 A:给一个N,找出一对数字使得3x+5y=N。或者说明无解。 题解:直接枚举x,看N-3^x是不是5的幂次就好了。 #include<bits/stdc++.h> using namespace std; map<long long, int> 阅读全文
posted @ 2020-10-26 16:38 John_Ran 阅读(123) 评论(0) 推荐(0) 编辑
摘要:A. Lucky 7 签到。 #include<bits/stdc++.h> #define all(x) x.begin(),x.end() #define fi first #define sd second #define lson (nd<<1) #define rson (nd+nd+1) 阅读全文
posted @ 2020-04-13 11:51 John_Ran 阅读(281) 评论(0) 推荐(0) 编辑
摘要:A. 签到题1。 #include<bits/stdc++.h> #define fi first #define sd second #define lson (nd<<1) #define rson (nd+nd+1) #define PB push_back #define mid (l+r> 阅读全文
posted @ 2020-03-29 12:09 John_Ran 阅读(246) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示