Submission #56467


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
int main (void)
{
int a,b,c,d,e,f=0,g,i;
scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
if(a<0){
for(i=a;i<0;i++)
f=f+c;
f=f+d;
for(i=0;i<b;i++)
f=f+e;
}
if(a>0){
for(i=a;i<b;i++)
f=f+e;
}
printf("%d\n",f);
}

ステータス

項目 データ
問題 0592 - 電子レンジ (Microwave)
ユーザー名 sth19_y-tamaru
投稿日時 2019-11-14 17:04:02
言語 C
状態 Accepted
得点 100
ソースコード長 261 Byte
最大実行時間 25 ms
最大メモリ使用量 536 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 23 ms 504 KB
1
2017-yo-t1-in2.txt AC 20 ms 536 KB
2
2017-yo-t1-in3.txt AC 15 ms 372 KB
3
2017-yo-t1-in4.txt AC 18 ms 388 KB
4
2017-yo-t1-in5.txt AC 25 ms 432 KB
5