Submission #00037


ソースコード

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

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
01.txt AC 12 ms 380 KB
1
02.txt AC 10 ms 404 KB
1
03.txt AC 10 ms 488 KB
1
04.txt AC 12 ms 520 KB
1
05.txt AC 12 ms 484 KB
1