April Fool's Day 2024 [Round 6]

2024-03-25 00:00:00 ~ 2024-04-08 00:00:00

邀请码:55i6

提示:这些题目含有 Codeforces 的某些特性,建议按分值升序开题。

Additional Pastes:

答案

Problem A

直接回答。大小写不敏感。

NO
NO
NO

Problem B

试一试即可。注意到题目中说可能有前导 0,不难猜到真的有。

035966

Problem C

这是 CF954A 的 AC Code。

954

Problem D

原题显然是 CF4A - Watermelon。

watermelon

Problem E

不难猜到密码是 codeforces。输出对应字符即可。

#include<bits/stdc++.h>
using namespace std;
string s=" codeforces";
int main()
{
    int h;
    cin>>h;
    cout<<s[h];
    return 0;
}

Problem F

注意到标题是 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;
}

Problem G

注意到标签是「排序」,排序即可。

#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;
}

Problem H

注意到 8 个题目背景都有白字。排成 8 行,提取前 7 列,就可以得到上面 7 个 Additional Pastes。依次回答 7 个 Additional Pastes 中的问题即可。注意,输入是大写字母,不是数字。

#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;
}