![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
风大了猪依旧飞不起来
这个作者很懒,什么都没留下…
展开
-
Codeforces 834A - The Useless Toy
水题。无脑暴力,多种可能性穷举,每4次是一个循环,故对4取余,然后分顺逆时针可能性即可 #include int main(void) { int c; char a, b; while (scanf("%c %c %d", &a, &b, &c) != EOF) { getchar(); if (c%4==0) {原创 2017-11-01 21:51:07 · 334 阅读 · 0 评论 -
codeforces 844A Diversity
#include #include int main(void) { int k, count, len; char ch[1005]; while (scanf("%s %d", ch, &k) != EOF) { count = 0; if (strlen(ch) < k) { printf("impossible\n"); contin原创 2017-11-04 10:27:19 · 204 阅读 · 0 评论 -
Codeforces A. Div. 64
64换成二进制,只要1后面有6个及以上的0即可 #include #include int main(void) { char ch[105]; int flag, zero, one; while (gets(ch) != NULL) { flag = zero = one = 0; for (int i = 0; i < strlen(ch); i++原创 2017-11-05 21:32:30 · 255 阅读 · 0 评论