会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cminus
ACMer/退役OIer
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
暴力
HihoCoder 1871 B. Heshen's Account Book
摘要:离谱的语文题 5点的时候我说,这不是傻逼题吗,我来打,最后看了题解之后八点多才做出来,太离谱了 1abc111abc1可以提炼出11111这个数字(这谁看的出来呀) #include <bits/stdc++.h> using namespace std; const int N = 2 * 1e6
阅读全文
posted @
2020-12-06 17:50
cminus
阅读(109)
评论(0)
推荐(0)
Codeforces Round #619 (Div. 2) A~D题解
摘要:最近网课也开始了,牛客上一堆比赛题目也没补,所以就D题后面的也懒得补了 A.Three String 水题 #include <cstdio> #include <cstring> using namespace std; char a[100010], b[100010], c[100010];
阅读全文
posted @
2020-02-14 14:03
cminus
阅读(180)
评论(0)
推荐(0)
2020牛客寒假算法基础集训营一 题解
摘要:2都结束了我才补完1的题 我真的太菜了 总体来说不是很难(反正我也AK不了) A.honoka和格点三角形 公式挺好推的,容斥随便搞搞就出来了,但是我错了8次....刚开始以为是取模的问题,后来把所有的数都取模了还是有问题,才发现因为用同余定理时候存在减法,会产生有负数的情况,所以需要(ans+MO
阅读全文
posted @
2020-02-07 15:10
cminus
阅读(215)
评论(0)
推荐(0)
Codeforces Round #603 (Div. 2) C.Everyone is A Winner!
摘要:tag里有二分,非常的神奇,我用暴力做的,等下去看看二分的题解 但是那个数组的大小是我瞎开的,但是居然没有问题233
阅读全文
posted @
2019-11-30 18:27
cminus
阅读(134)
评论(0)
推荐(0)
Codeforces Round #603 (Div. 2) A.Sweet Problem
摘要:#include <cstdio> #include <algorithm> using namespace std; int main() { int t; scanf("%d", &t); while (t--) { int r, g, b; scanf("%d %d %d", &r, &g, &b); int sum = r + g + b; int maxn = max(r, g); ma
阅读全文
posted @
2019-11-30 15:16
cminus
阅读(95)
评论(0)
推荐(0)
Codeforces Round #603 (Div. 2)B. PIN Codes
摘要:辩论队团建去了,结果错过了register的时间,很尴尬的就只能事后补题了 B题的话sort也完全可以,毕竟 n<10可以乱玩,然后的话我想用用map,所以就是快乐的暴力了.
阅读全文
posted @
2019-11-30 15:11
cminus
阅读(130)
评论(0)
推荐(0)
公告