随笔分类 -  补题

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 阅读全文
posted @ 2019-01-31 14:15 海苔 阅读(125) 评论(0) 推荐(0)
Codeforces Round #524 (Div. 2) C Masha and two friends
摘要:题意:在n*m的矩形中,每次给你两个两个矩形,第一次涂成白色,第二次涂成黑色, 问最后的白色和黑色色块有多少个? 题解:从题目中,我们可以知道,n*m的矩形中,白色的个数就是a*b/2+((a*b)&1); 而黑色就是n*m-白色的个数 然后怎么求出给定矩形中黑白色的个数呢?我们并不知道其中黑色和白 阅读全文
posted @ 2019-01-31 13:32 海苔 阅读(123) 评论(0) 推荐(0)
dfs
摘要:题目: 代码: 阅读全文
posted @ 2018-12-02 15:02 海苔 阅读(172) 评论(0) 推荐(0)
cf:c题
摘要:题目: 代码: #include<iostream> #include<algorithm> #include<vector> #include<string> #include<math.h> const int max_=1e5+5; using namespace std; vector<in 阅读全文
posted @ 2018-11-30 22:17 海苔 阅读(121) 评论(0) 推荐(0)