結果
| 問題 | No.2224 UFO Game |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-24 21:23:30 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 308µs | |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 880 ms |
| コンパイル使用メモリ | 180,084 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-25 22:51:59 |
| 合計ジャッジ時間 | 1,999 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s[0] == 'x') {
long long ans = (1LL << 32) - stoi(s.substr(1, s.size() - 1));
cout << ans << endl;
} else {
int ans = stoi(s);
cout << ans << endl;
}
}