Submission #00001


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
int ans=0;
cin>>a>>b>>c;
if(c>=0)cout<<a+b<<endl;
else cout<<a-b<<endl;
return(0);
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
01.txt AC 14 ms 480 KB
1
02.txt AC 13 ms 452 KB
1
03.txt AC 14 ms 428 KB
1
04.txt AC 14 ms 532 KB
1
05.txt AC 23 ms 504 KB
1