Submission #56460


ソースコード

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
27
28
29
30
31
32
#include <stdio.h>
int main(void)
{
int a,b,c,d,e,i,t,j,s=0;
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
if(0 >=a){
while(1){
if(a > b)break;
if(a == 0)
s = s + d;
if(0 > a)
s = s + c;
if(a > 0)
s = s + e;
a++;
}
}
else{
while(1){
a++;
if(a > b)break;
if(a == 0)
s = s + d;
if(0 > a)
s = s + c;
if(a > 0)
s = s + e;
}
}
printf("%d\n",s);
return 0;
}

ステータス

項目 データ
問題 0592 - 電子レンジ (Microwave)
ユーザー名 sth19_k-matusita
投稿日時 2019-11-14 16:37:08
言語 C
状態 Accepted
得点 100
ソースコード長 442 Byte
最大実行時間 27 ms
最大メモリ使用量 504 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 19 ms 504 KB
1
2017-yo-t1-in2.txt AC 15 ms 308 KB
2
2017-yo-t1-in3.txt AC 22 ms 316 KB
3
2017-yo-t1-in4.txt AC 16 ms 364 KB
4
2017-yo-t1-in5.txt AC 27 ms 412 KB
5