結果
| 問題 |
No.222 引き算と足し算
|
| コンテスト | |
| ユーザー |
troro_kelp
|
| 提出日時 | 2018-09-20 19:16:32 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,197 bytes |
| コンパイル時間 | 754 ms |
| コンパイル使用メモリ | 94,392 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-18 08:36:15 |
| 合計ジャッジ時間 | 1,513 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 17 WA * 14 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <cmath>
#include <queue>
#include <numeric>
#include <climits>
#include <iterator>
#include <iomanip>
#include <stack>
#include <set>
#include <cstdio>
#include <bitset>
#include <functional>
#include <tuple>
using namespace std;
const constexpr int INF = 1e9;
typedef pair<int, int> P;
#define FOR(i, a, n) for (ll i = (ll)a; i<(ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)
typedef long long ll;
typedef vector<int> VI;
const constexpr ll MOD = 1e9 + 7;
const int BITSIZE = 100010;
struct Less {
bool operator()(const pair<int, int>& x, const pair<int, int>& y) const {
return x.second < y.second;
}
};
struct More {
bool operator()(const pair<int, int>& x, const pair<int, int>& y) const {
return x.first > y.first;
}
};
//1-indexed
int bit[100010];
int bit_query(int i) {
int res = 0;
for (; i >= 1; i -= i & -i) res = max(res, bit[i]);
return res;
}
void bit_set(int x, int v) {
for (; x <= BITSIZE; x += x & -x) {
bit[x] = max(bit[x], v);
}
}
int main() {
int x, y;
char op;
scanf("%d%c%d", &x, &op, &y);
cout << ((op = '-') ? (x + y) : (x - y)) << endl;
return 0;
}
troro_kelp