2024-03-25 00:00:00 ~ 2024-04-08 00:00:00
提示:这些题目含有 Codeforces 的某些特性,建议按分值升序开题。
Additional Pastes:
6pn5z8ev) A. Who's the father of Codeforces? (the answer includes a space)qx1hvghm) B. When did Codeforces Beta Round 1 start? (in UTC+8, print like Aug/31/2023 01:30)qrzfp7eu) C. What's the official mirror site of Codeforces? (print like m1.codeforces.com)jbb3plg6) D. What's the topic of the first sidebar in the HOME page? (the answer includes a space and a capital English letter)qor2acpy) E. What's the largest prime under bdu9b31a) F. What's the root of the equation 95d92fz6) G. Tell me what's your favourite! (the answer is a string of length 直接回答。大小写不敏感。
NO
NO
NO
试一试即可。注意到题目中说可能有前导
035966
这是 CF954A 的 AC Code。
954
原题显然是 CF4A - Watermelon。
watermelon
不难猜到密码是 codeforces。输出对应字符即可。
#include<bits/stdc++.h>
using namespace std;
string s=" codeforces";
int main()
{
int h;
cin>>h;
cout<<s[h];
return 0;
}
注意到标题是 Validator,所以要判断数据合不合法。
大小写不敏感。输出 Valid/Invalid 或 Yes/No 都可以。
#include<bits/stdc++.h>
using namespace std;
int main()
{
int h;
cin>>h;
if(h<=10) cout<<"yes";
else cout<<"no";
return 0;
}
注意到标签是「排序」,排序即可。
#include<bits/stdc++.h>
using namespace std;
char s[100012];
int main()
{
for(int i=1;i<=100000;i++)
cin>>s[i];
sort(s+1,s+100001);
for(int i=1;i<=100000;i++)
cout<<s[i];
return 0;
}
注意到
#include<bits/stdc++.h>
using namespace std;
const string s[8]=
{
"",
"Mike Mirzayanov",
"Feb/19/2010 20:00",
"mirror.codeforces.com",
"Pay attention",
"9973",
"10",
"Accepted"
};
int main()
{
char c;
cin>>c;
int x=c-64;
cout<<s[x];
return 0;
}