Submission #00260


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
#include<iostream>
using namespace std;
int main(){
int n;
int a,b;
cin>>a>>b>>n;
if(n>=0){
cout<<a+b<<endl;
}else{
cout<<a-b<<endl;
}
return(0);
}

ステータス

項目 データ
問題 0014 - 眠れる獅子の油断
ユーザー名 ei1736
投稿日時 2017-11-06 18:27:47
言語 C++
状態 Accepted
得点 14
ソースコード長 183 Byte
最大実行時間 24 ms
最大メモリ使用量 480 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
01.txt AC 20 ms 480 KB
1
02.txt AC 17 ms 456 KB
1
03.txt AC 15 ms 432 KB
1
04.txt AC 24 ms 408 KB
1
05.txt AC 15 ms 380 KB
1