Submission #10931


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<bits/stdc++.h>
using namespace std;
int main()
{
int A, B, C, D, E;
cin >> A >> B >> C >> D >> E;
int res = 0;
if(A < 0) {
res += -A * C;
res += D;
A = 0;
}
res += E * (B - A);
cout << res << endl;
}

ステータス

項目 データ
問題 0592 - 電子レンジ (Microwave)
ユーザー名 ei1333
投稿日時 2016-12-11 16:41:04
言語 C++11
状態 Accepted
得点 1
ソースコード長 262 Byte
最大実行時間 28 ms
最大メモリ使用量 684 KB

セット

セット 得点 Cases
1 set1 20 / 20 *t1*1.txt
2 set2 0 / 20 *t1*2.txt
3 set3 0 / 20 *t1*3.txt
4 set4 0 / 20 *t1*4.txt
5 set5 0 / 20 *t1*5.txt

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
2017-yo-t1-in1.txt AC 28 ms 476 KB
1
2017-yo-t1-in2.txt AC 24 ms 460 KB
2
2017-yo-t1-in3.txt AC 22 ms 576 KB
3
2017-yo-t1-in4.txt AC 21 ms 684 KB
4
2017-yo-t1-in5.txt AC 20 ms 540 KB
5