原题链接题目大意 对于一个字符矩阵,找其中的子块,要求有两个其一子块中包含
现场只写出来两道。 "第一题" 题意:找到数组任意一个子集的和是偶数 题解:贪心,找到任
原创 2022-10-18 13:36:58
28阅读
P1:Mashmokh and Lights
原创 2023-07-17 18:11:43
44阅读
codeforces 1058 div2写在前面喜报,上巨分了第一次出 D 的说这篇题解是赛时还剩 1h 直接放弃E写得,现在只希望赶紧结束,不然加分加少了,哎哎哎难道这就是量变临界点吗?看来 10 天 100 道的神迹还是很有效果的www这下是正式解锁 1700 了hhhA这个SB题WA了三发,一开始题都没读懂,一脸懵逼思路:就是 mexB思路:发现只要看与前一个数字的差值就好了,如果差值 d
转载 14天前
0阅读
A: 1 // File Name: a.cpp 2 // Author: darkdream 3 // Created Time: 2014年07月13日 星期日 20时47分08秒 4 5 #include<vector> 6 #include<list> 7 #include<map> 8 #include<set> 9
转载 2014-07-14 21:13:00
72阅读
2评论
A. Raising Bacteria计算一下x的bitcount就是答案。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int bitcount(int x) 8 { 9 int a...
转载 2015-09-17 15:56:00
63阅读
2评论
A:读懂题,乘一下判断大小就行了 #include<bits/stdc++.h> using namespace std; int main() { int s, v1, v2, t1, t2; scanf("%d%d%d%d%d", &s, &v1, &v2, &t1, &t2); int ans
转载 2017-08-02 21:10:00
60阅读
2评论
由于下午硬钢树套树和大力颓废就没补完 C:我傻逼比赛时没做出来。。。就是排个序然后算贡献 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 300010, mod = 1000000007
转载 2017-05-29 19:46:00
81阅读
2评论
A. Subtract or Divide(AC)题意:猜想n可以通过若干次的下面两个操作变为1,输出最小操作次数1:
原创 2022-11-25 19:01:00
20阅读
题目大意:就是有一个棋盘,棋盘上面最多有26种颜色,相邻行的同样颜色的小格子可以
原创 2022-12-12 19:21:58
89阅读
A:枚举一下就行了...居然wa了一发,题目一定要看清 #include<bits/stdc++.h> using namespace std; int n; int main() { cin >> n; int mid = n / 2 - ((n & 1) == 0); for(int i = n
转载 2017-09-07 18:30:00
47阅读
2评论
竟然还涨分了。。。rank500+还能涨我rating是有多低。。。 AB不写了 C:类似找规律,具体证明看edtorial #include<bits/stdc++.h> using namespace std; const int N = 200010; int m; struct data {
转载 2017-08-21 08:20:00
73阅读
2评论
A:暴力模拟 #include<bits/stdc++.h> using namespace std; int a, b; int main() { scanf("%d%d", &a, &b); int delta = 1, x = 0; while(1) { if(x == 0) { if(a <
转载 2017-05-29 11:06:00
59阅读
2评论
Codeforces Round 736 div2 前言 多测不清空 罚时两行泪 还有 这喵的翻译好难用啊 题目 A. Gregor and Cryptography 题意 给定一个素数 \(P\) 找到 \(a, b\) 使 \(p \% a = p \% b\) 多组数据 \(5 \leq p ...
转载 2021-08-02 23:11:00
117阅读
2评论
p1:Inna and Choose Options      模拟,12张牌,每张牌上是X或O,现在可以按每行1,2,3,4,6,12张的方式摆放,若某种摆放方式使得其中任意一列全部是X这就是一种合理的方式,求所有合理的摆放方式。直接模拟...#include #include #include using namespace std;int n,m;char s[20];
原创 2023-07-17 18:11:19
57阅读
A. The Child and Homework注意仔细读题,WA了好多次,=_= 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int maxn = 110; 7 8 char s[4][maxn];...
转载 2015-05-09 10:41:00
66阅读
2评论
A:暴力模拟,能加就加,如果累计到了8就加上,每次累积 #include<bits/stdc++.h> using namespace std; int main() { int n,k ,cnt = 0; scanf("%d%d", &n, &k); for(int i = 1; i <= n;
转载 2017-08-14 22:41:00
100阅读
2评论
A 暴力查询,分三段查就可以了 #include<bits/stdc++.h> using namespace std; const int N = 110; int n, pos; int a[N]; int main() { scanf("%d", &n); for(int i = 1; i <
转载 2017-07-15 15:50:00
75阅读
2评论
A:暴力枚举 模拟 #include<bits/stdc++.h> using namespace std; const int N = 60; int n; int a[N][N]; int main() { scanf("%d", &n); for(int i = 1; i <= n; ++i)
转载 2017-06-26 10:42:00
86阅读
2评论
A题 我仅仅想说题意非常坑,一不小心就会wa,哎,不机智的我居然在最后判题的过程中错了,少加一个推断语句。错的值了,你说呢? #include<map> #include<cmath> #include<queue> #include<vector> #include<cstdio> #includ
转载 2017-07-31 17:51:00
57阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5