随笔分类 - 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>
阅读全文
摘要: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)
阅读全文
摘要: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>
阅读全文