Submission #00109


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include<stdio.h>
int main(){
long long A,B,C,N,M,X=0,Y=0,i,j,q=0,e;
scanf("%lld %lld %lld %lld %lld",&A,&B,&C,&N,&M);
// i emiCT j AUOCT
//X emi WEP Y AUo WEP
i=C;
j=M;
for(int s=0; s<=A; s++){
if(i==0){
X=X+B;
i=C;
i=i-1;
}else{
i=i-1;
}
if(j==0){
Y=Y+N;
j=M;
j=j-1;
}else{
j=j-1;
}
}
if(X>Y){
printf("Winner is Emiya\n");
}else{
if(X<Y){
printf("Winner is AUO\n");
}
if(X==Y){
printf("Draw\n");
}
}
return(0);
}

ステータス

項目 データ
問題 0008 - 家事王VS英雄王
ユーザー名 SnakyZoo8277089
投稿日時 2024-04-26 16:43:10
言語 C
状態 Accepted
得点 10
ソースコード長 717 Byte
最大実行時間 83 ms
最大メモリ使用量 476 KB

セット

セット 得点 Cases
1 ALL 10 / 10 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01.txt AC 19 ms 376 KB
1
input02.txt AC 25 ms 404 KB
1
input03.txt AC 17 ms 360 KB
1
input04.txt AC 16 ms 288 KB
1
input05.txt AC 18 ms 316 KB
1
input06.txt AC 26 ms 272 KB
1
input07.txt AC 83 ms 424 KB
1
input08.txt AC 80 ms 476 KB
1
input09.txt AC 18 ms 396 KB
1