RP测试器
代码:
#include<bits/stdc++.h>
using namespace std;
int main()
{
srand(time(NULL));
printf("The RP Test Program for NOIP2020
");
printf("Please write down your name:");
char s[200];
scanf("%s",s+1);
int op=rand()%101;
printf("Your RP on NOIP2020 is:
");
printf("%d
",op);
if(op<10)
printf("You'll GG...
");
else if(op<50)
printf("Good luck!
");
else if(op<80)
printf("Congratulations!
");
else
printf("Wuhu!!Qifei!!!!
");
return 0;
}