用了30分钟才写完,我真的蒟蒻啦
|
|
回复 @D :
题目 3498 [CSP 2020J]优秀的拆分
2020-12-03 19:49:10
|
|
回复 @D : #include <bits/stdc++.h>
using namespace std; char a[15],b[15]; bool qd(){ if(strlen(a) != strlen(b))return 0; for(int i = 0;i < strlen(a);i++) if(a[i] != b[i] && a[i] != b[i] + 32 && a[i] != b[i] - 32)return 0; return 1; } int main(){ freopen("stat.in","r",stdin); freopen("stat.out","w",stdout); cin>>b; int i = 0,f = 1,s,y = 0; while(cin>>a){ cout<<a; if(qd()){ y++; if(f == 1)f = 0,s = i; } i++; } if(y == 0)cout
题目 3498 [CSP 2020J]优秀的拆分
2020-11-19 21:11:43
|
|
z
|
|
CSP2020纪念
|