Submission #00211


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n,a,b,c,d;
cin>>n>>a>>b>>c>>d;
long long x,y;
x=n/b;
y=n/d;
long long E,A;
E=x*a;
A=y*c;
if(E>A){
cout<<"Winner is Emiya"<<"\n";
}else if(E<A){
cout<<"Winner is AUO"<<"\n";
}else{
cout<<"Draw"<<"\n";
}
return(0);
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01.txt AC 23 ms 476 KB
1
input02.txt AC 19 ms 448 KB
1
input03.txt AC 21 ms 416 KB
1
input04.txt AC 19 ms 384 KB
1
input05.txt AC 19 ms 352 KB
1
input06.txt AC 23 ms 452 KB
1
input07.txt AC 23 ms 428 KB
1
input08.txt AC 19 ms 404 KB
1
input09.txt AC 15 ms 504 KB
1