Submission #00237


ソースコード

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
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
int a, b;
int c, d;
int x = 0, y = 0;
cin >> n;
cin >> a >> b;
cin >> c >> d;
while(b < n) {
b = b + b;
if (b < n) {
break;
}
x += a;
}
while(d < n) {
d = d + d;
if (d < n) {
break;
}
y += c;
}
if (x > y) {
printf("Winner is Emiya\n");
} else if(x < y) {
printf("Winner is AUO\n");
} else {
printf("Draw\n");
}
return(0);
}

ステータス

項目 データ
問題 0008 - 家事王VS英雄王
ユーザー名 ei2328
投稿日時 2024-04-26 16:32:59
言語 C++17
状態 Wrong Answer
得点 0
ソースコード長 599 Byte
最大実行時間 57 ms
最大メモリ使用量 740 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01.txt WA 21 ms 348 KB
1
input02.txt WA 57 ms 572 KB
1
input03.txt AC 22 ms 540 KB
1
input04.txt WA 16 ms 508 KB
1
input05.txt AC 19 ms 604 KB
1
input06.txt WA 38 ms 700 KB
1
input07.txt AC 17 ms 672 KB
1
input08.txt AC 16 ms 644 KB
1
input09.txt WA 16 ms 740 KB
1