Submission #60274


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
#include<stdio.h>
signed main(){
int a,b,c,d,e;
scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
if(a<0){
printf("%d\n",-a*c+d+e*b);
}
else{
printf("%d\n",e*(b-a));
}
return(0);
}

ステータス

項目 データ
問題 0592 - 電子レンジ (Microwave)
ユーザー名 ei2005
投稿日時 2020-06-25 17:52:15
言語 C
状態 Accepted
得点 100
ソースコード長 225 Byte
最大実行時間 20 ms
最大メモリ使用量 572 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 20 ms 504 KB
1
2017-yo-t1-in2.txt AC 17 ms 524 KB
2
2017-yo-t1-in3.txt AC 19 ms 572 KB
3
2017-yo-t1-in4.txt AC 20 ms 404 KB
4
2017-yo-t1-in5.txt AC 19 ms 416 KB
5