随笔分类 - 补题
Codeforces Round #535 (Div. 3)
摘要:A b #include<bits/stdc++.h> using namespace std; #define mod 1000000009 typedef long long ll; int n; int a[200]; int b[10005]; int main() { cin>>n; fo
阅读全文
Codeforces Round #524 (Div. 2) C Masha and two friends
摘要:题意:在n*m的矩形中,每次给你两个两个矩形,第一次涂成白色,第二次涂成黑色, 问最后的白色和黑色色块有多少个? 题解:从题目中,我们可以知道,n*m的矩形中,白色的个数就是a*b/2+((a*b)&1); 而黑色就是n*m-白色的个数 然后怎么求出给定矩形中黑白色的个数呢?我们并不知道其中黑色和白
阅读全文
cf:c题
摘要:题目: 代码: #include<iostream> #include<algorithm> #include<vector> #include<string> #include<math.h> const int max_=1e5+5; using namespace std; vector<in
阅读全文
浙公网安备 33010602011771号