- 博客(4)
- 收藏
- 关注
原创 (Training 27)AtCoder Beginner Contest 191
A - Vanishing Pitch 判断下距离即可 #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N=1e5+10; int main(){ int n,s,t,d; cin>>n>>s>>t>>d; int sd=n*s; int td=n*t; if(d<sd||d>
2021-02-10 20:57:24 254 1
原创 (Training 26)Educational Codeforces Round 94
A. String Similarity 一个二进制字符串 构造一个长度为n的字符串 使得长度原串为n的子串能在该构造出来的字符串中满足相同位置的字符相等 思路:这里取字符串的第奇数个 必然满足条件 #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N=1e5+10; char str[N]; int main(){ int T ; cin&
2021-02-10 18:55:16 263 1
原创 (Training 25)Educational Codeforces Round 93
A. Bad Triangle 题意:输出一个不能组成三角形的3个数 思路:直接考虑1 2 n即可 #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N=1e6+10; int a[N]; bool check(int x,int y,int z){ if((x+y<=z))return 1; return 0; } int main()
2021-02-04 16:49:05 91
原创 (Training 24)AtCoder Beginner Contest 190
A - Very Very Primitive Game 题意: “Aoki"有A个糖果 “Takahashi” 有B个糖果 1表示"Takahashi“先吃 0表示” "Aoki"先吃 每次吃一个 轮到某个人没得吃的时候另一个人赢了 输出他的名字 思路:直接比较即可 #include<cstring> #include<algorithm> #include<iostream> using namespace std; const int N=1e5+10; int
2021-02-01 00:35:25 143
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人