Submission #00325
ソースコード
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 | #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=0,countbis=0; for ( int i=1;i<=n;i++){ if (i%b==0){ count+=a; } if (i%d==0){ countbis+=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:04:08 |
言語 | C++17 |
状態 | Time Limit Exceeded |
得点 | 0 |
ソースコード長 | 534 Byte |
最大実行時間 | 1000 ms |
最大メモリ使用量 | 632 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 10 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
input01.txt | AC | 20 ms | 348 KB |
1
|
input02.txt | AC | 18 ms | 444 KB |
1
|
input03.txt | AC | 20 ms | 412 KB |
1
|
input04.txt | AC | 22 ms | 384 KB |
1
|
input05.txt | AC | 21 ms | 484 KB |
1
|
input06.txt | AC | 21 ms | 456 KB |
1
|
input07.txt | TLE | 1000 ms | 428 KB |
1
|
input08.txt | TLE | 1000 ms | 532 KB |
1
|
input09.txt | AC | 23 ms | 632 KB |
1
|