随笔分类 -  Codeforces

摘要:Codeforces Round #797 (Div. 3) A - Print a Pedestal #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; cons 阅读全文
posted @ 2022-06-09 12:44 menitrust 阅读(52) 评论(0) 推荐(0)
摘要:Codeforces Round #790 (Div. 4) A - Lucky? #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; const int N=1e 阅读全文
posted @ 2022-05-12 22:18 menitrust 阅读(57) 评论(0) 推荐(0)
摘要:A. Game 题意:给你一个01序列,1代表陆地0代表海洋,相邻的陆地可以走,对于海洋而言你有一次机会花费i+x个金币跳到任意陆地x,问最小花费 找到第一个0和最后一个0,计算一下花费即可,特判一下全是陆地的情况。 感想:一开始读题读错了,以为是可以无限制跳,得注意 #include<iostre 阅读全文
posted @ 2022-03-06 23:40 menitrust 阅读(58) 评论(0) 推荐(0)
摘要:A #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #include<cmath> using namespace std; typedef long long ll; const int N=1e6 阅读全文
posted @ 2022-03-06 00:31 menitrust