RP测试器

RP测试器

代码:

#include<bits/stdc++.h>
using namespace std;
int main()
{
	srand(time(NULL));
	printf("The RP Test Program for NOIP2020\n");
	printf("Please write down your name:");
	char s[200];
	scanf("%s",s+1);
	int op=rand()%101;
	printf("Your RP on NOIP2020 is:\n");
	printf("%d\n",op);
	if(op<10)
		printf("You'll GG...\n");
	else if(op<50)
		printf("Good luck!\n");
	else if(op<80)
		printf("Congratulations!\n");
	else
		printf("Wuhu!!Qifei!!!!\n");
    return 0;
}
posted @ 2020-12-04 19:11  Seaway-Fu  阅读(250)  评论(0编辑  收藏  举报