結果
問題 | No.222 引き算と足し算 |
ユーザー |
|
提出日時 | 2021-11-27 20:52:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 149 bytes |
コンパイル時間 | 1,569 ms |
コンパイル使用メモリ | 166,700 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 12:00:21 |
合計ジャッジ時間 | 2,734 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 31 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){int x,y; char c; cin >> x >> c >> y;cout << (c == '+' ? x - y : x + y) << endl;}