codeforces
文章平均质量分 64
谢天意
这个作者很懒,什么都没留下…
展开
-
2021-07-21
Codeforces Round #690 (Div. 3)(A~F) A题 简单模拟,按照题目写 #include<iostream> using namespace std; int n,t,a[500]; int main() { cin>>t; while(t--) { cin>>n; for(int i=1;i<=n;i++)cin>>a[i]; for(int i=1,j=n;i<j;i++,j--) cout&l原创 2021-07-21 21:09:22 · 112 阅读 · 0 评论 -
2021-07-15
Codeforces Round #693 (Div. 3) A~G A题 题意:给你a*b的纸,a%20||b%20则可以切开,问能切成的最大值能不能大于n 容易想到 横着切和竖着切没有关联,每次切会让纸的数量*2,所以可以先一直横着切,再一直竖着切 #include<iostream> using namespace std; int main() { int t; cin>>t; while(t--) { long long a,b,n; cin>>原创 2021-07-15 10:53:42 · 122 阅读 · 0 评论 -
2021-07-13
Codeforces Round #719 (Div. 3)题解A~G A题 题意:给定一个字母串,问所有任意两个相同字母间是否有不同字符 遍历字符串 如果当前字母在前面出现了且和上一位不同 则一定有 ABA这种情况发生,输出NO即可 #include<iostream> using namespace std; int t,n; char s[110]; int main() { scanf("%d",&t); while(t--) { scanf("%d",&n);原创 2021-07-13 15:10:53 · 113 阅读 · 0 评论