結果
問題 | No.2224 UFO Game |
ユーザー |
![]() |
提出日時 | 2024-01-09 00:05:45 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 396 bytes |
コンパイル時間 | 686 ms |
コンパイル使用メモリ | 70,852 KB |
最終ジャッジ日時 | 2025-02-18 16:36:11 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <iostream>#include <cassert>#include <algorithm>using namespace std;int main() {ios::sync_with_stdio(false);cin.tie(nullptr);string s; cin >> s;if (s[0] == 'x') {reverse(s.begin(), s.end());s.pop_back();reverse(s.begin(), s.end());long long ss = stoll(s);cout << (1LL << 32) - ss << endl;} else {cout << s << endl;}return 0;}