Submission #00004


ソースコード

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

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
01.txt AC 13 ms 476 KB
1
02.txt AC 19 ms 456 KB
1
03.txt AC 12 ms 560 KB
1
04.txt AC 12 ms 536 KB
1
05.txt AC 13 ms 508 KB
1