Submission #00025


ソースコード

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

ステータス

項目 データ
問題 0001 - 眠れる獅子の油断
ユーザー名 おでんα
投稿日時 2017-07-14 16:16:10
言語 C++11
状態 Accepted
得点 10
ソースコード長 177 Byte
最大実行時間 17 ms
最大メモリ使用量 480 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
01.txt AC 12 ms 480 KB
1
02.txt AC 13 ms 464 KB
1
03.txt AC 11 ms 448 KB
1
04.txt AC 17 ms 432 KB
1
05.txt AC 13 ms 416 KB
1