Submission #78251


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<stdio.h>
int main(){
int a,b,c,d,e;
scanf("%d%d",&a,&b);
c=a+b;
d=a+b-100;
e=a+b-50;
if((a>=500||b>=500)&&c>=900){
printf("%d\n",d);
}else if(c>=600){
printf("%d\n",e);
}else{
printf("%d\n",c);
}
return(0);
}

ステータス

項目 データ
問題 1763 - クーポン券
ユーザー名 e2403
投稿日時 2024-04-23 16:17:42
言語 C
状態 Accepted
得点 2
ソースコード長 300 Byte
最大実行時間 67 ms
最大メモリ使用量 572 KB

セット

セット 得点 Cases
1 ALL 2 / 2 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 25 ms 504 KB
1
in2.txt AC 67 ms 260 KB
1
in3.txt AC 14 ms 316 KB
1
in4.txt AC 23 ms 368 KB
1
in5.txt AC 16 ms 420 KB
1
in6.txt AC 22 ms 472 KB
1
in7.txt AC 16 ms 520 KB
1
in8.txt AC 27 ms 572 KB
1
in9.txt AC 17 ms 528 KB
1
in10.txt AC 15 ms 308 KB
1
in11.txt AC 18 ms 316 KB
1
in12.txt AC 15 ms 492 KB
1
in13.txt AC 21 ms 544 KB
1
in14.txt AC 20 ms 380 KB
1
insample1.txt AC 23 ms 460 KB
1
insample2.txt AC 19 ms 352 KB
1
insample3.txt AC 27 ms 528 KB
1