結果
| 問題 | No.8062 A + B |
| コンテスト | |
| ユーザー |
iqueue02
|
| 提出日時 | 2020-04-01 22:28:42 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 455 bytes |
| 記録 | |
| コンパイル時間 | 1,021 ms |
| コンパイル使用メモリ | 179,672 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-15 06:11:51 |
| 合計ジャッジ時間 | 1,499 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n);i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef pair<int,int> P;
constexpr int INF = 1e9;
int main() {
string a, b;
cin >> a >> b;
bool m = false;
if (a[0] == '-') m = true;
int d = a.back() - '0';
if (m) d *= -1;
m = false;
if (b[0] == '-') m = true;
int c = b.back() - '0';
if (m) c *= -1;
cout << d + c << endl;
return 0;
}
iqueue02