随笔分类 - CF
摘要:题目 D. Stoned Game 分析 如果最大的一堆大于其余所有之和,那么先手必胜,否则根据奇偶来判断 代码 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int a[N]; int main() { int t
阅读全文
摘要:题目 题意 让你找有多少个子序列加起来为0 分析 代码 #include<bits/stdc++.h> using namespace std; int n,m; #define int long long const int N=2e5+10; int a[N]; int mod=1e9+7; i
阅读全文
摘要:B 题意 给你一个数,找到一个可以整除某个数任意一位的数 分析 1 2 3 4 5 6 7 8 9的lcm是2550,说明最大就是2550暴力即可 代码 #include <bits/stdc++.h> #define ll long long using namespace std; int ma
阅读全文

浙公网安备 33010602011771号