摘要:
1004.Tokitsukaze and Multiple 求和为p的倍数的块的最大数量,我用了比较暴力的做法,好像有dp的做法? #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a 阅读全文
摘要:
题目传送门 A. Johnny and Ancient Computer a经过一系列变换成为b需要的次数 简单的模拟 #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) f 阅读全文
摘要:
题目传送门 先放这,后面会补的 A. Odd Selection #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (register int i = a; i < 阅读全文
摘要:
题目传送门 A. Berland Poker #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (register int i = a; i <= b; i++) 阅读全文
摘要:
题目传送门 A. Park Lighting #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (register int i = a; i <= b; i++) 阅读全文
摘要:
题目传送门 A. Minimal Square #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (register int i = a; i <= b; i++) 阅读全文
摘要:
题目传送门 A. Sequence with Digits an+1=an+minDigit(an)⋅maxDigit(an),已知a1,k,求ak。 当minDigit(an)=0时,an+1=an,对后续的答案不会产生影响了。 #include <bits/stdc++.h> using nam 阅读全文