Submission #00329


ソースコード

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

ステータス

項目 データ
問題 0008 - 家事王VS英雄王
ユーザー名 SPAAcup(ei2324)
投稿日時 2024-04-26 17:06:24
言語 C++17
状態 Accepted
得点 10
ソースコード長 394 Byte
最大実行時間 31 ms
最大メモリ使用量 628 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01.txt AC 31 ms 348 KB
1
input02.txt AC 17 ms 316 KB
1
input03.txt AC 20 ms 416 KB
1
input04.txt AC 16 ms 380 KB
1
input05.txt AC 18 ms 472 KB
1
input06.txt AC 16 ms 444 KB
1
input07.txt AC 15 ms 548 KB
1
input08.txt AC 26 ms 528 KB
1
input09.txt AC 20 ms 628 KB
1