mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
12 lines
245 B
C++
12 lines
245 B
C++
|
#include <cstdio>
|
||
|
#include <cstdlib>
|
||
|
int main()
|
||
|
{
|
||
|
srand(1121139700);
|
||
|
int caseNumber;
|
||
|
scanf("%d", &caseNumber);
|
||
|
while(caseNumber --)
|
||
|
if(rand() & 1) printf("alive!\n");
|
||
|
else printf("dead!\n");
|
||
|
}
|