Submission #00003


ソースコード

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

ステータス

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

セット

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

テストケース

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