結果
| 問題 |
No.2224 UFO Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-28 13:35:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 441 bytes |
| コンパイル時間 | 1,554 ms |
| コンパイル使用メモリ | 168,264 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-17 14:04:48 |
| 合計ジャッジ時間 | 1,746 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 5 WA * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef DEBUG_
#include "../../../onlinejudge/dump.cpp"
#else
#define dump(...)
#endif
int main(void) {
ios::sync_with_stdio(false);
cin.tie(0);
string s;
cin >> s;
if (s[0] != 'x') {
cout << stoi(s) << endl;
} else {
dump((long long) (1LL << 31));
cout << (long long)(1LL << 31) - stol(s.substr(1, (int) s.size())) << endl;
}
return 0;
}