結果

問題 No.222 引き算と足し算
ユーザー koba-e964
提出日時 2015-06-06 00:00:03
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 175 bytes
コンパイル時間 1,583 ms
コンパイル使用メモリ 157,300 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-15 21:29:11
合計ジャッジ時間 2,678 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
int x,y;
char op;
cin >>x;
op =cin.get();
cin>>y;
if (op == '+') cout << x - y << endl;
else cout << x + y << endl;
}
0