Submission #61473
ソースコード
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<iostream> using namespace std; signed main(){ cin.tie(nullptr); ios_base::sync_with_stdio( false ); int a,b,c,d,e; int time =0; cin>>a>>b>>c>>d>>e; if (a<0){ while (a!=0){ time +=c; a++; } } if (a==0){ time +=d; } if (a>=0){ while (a!=b){ time +=e; a++; } } cout<< time << "\n" ; return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0592 - 電子レンジ (Microwave) |
ユーザー名 | ei2009 |
投稿日時 | 2020-07-30 16:27:36 |
言語 | C++17 |
状態 | Accepted |
得点 | 100 |
ソースコード長 | 450 Byte |
最大実行時間 | 54 ms |
最大メモリ使用量 | 692 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | set1 | 20 / 20 | *t1*1.txt |
2 | set2 | 20 / 20 | *t1*2.txt |
3 | set3 | 20 / 20 | *t1*3.txt |
4 | set4 | 20 / 20 | *t1*4.txt |
5 | set5 | 20 / 20 | *t1*5.txt |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # | ||||
---|---|---|---|---|---|---|---|---|
2017-yo-t1-in1.txt | AC | 29 ms | 604 KB |
1
|
||||
2017-yo-t1-in2.txt | AC | 54 ms | 692 KB |
2
|
||||
2017-yo-t1-in3.txt | AC | 36 ms | 516 KB |
3
|
||||
2017-yo-t1-in4.txt | AC | 32 ms | 468 KB |
4
|
||||
2017-yo-t1-in5.txt | AC | 17 ms | 424 KB |
5
|