結果
| 問題 |
No.2224 UFO Game
|
| コンテスト | |
| ユーザー |
d3nominator
|
| 提出日時 | 2023-02-24 21:25:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 534 bytes |
| コンパイル時間 | 1,566 ms |
| コンパイル使用メモリ | 192,864 KB |
| 最終ジャッジ日時 | 2025-02-10 20:26:05 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
#ifdef LOCAL
#include "header/debug.h"
#else
#define debug(x...) 42
#endif
#define int long long
using ll = long long;
void solve () {
string s;
cin >> s;
if ( s[0] == 'x'){
ll ans = stoll(s.substr(1));
cout << (ll)((1LL<<32) -(ll)(ans)) << endl;
}
else{
cout << s << endl;
}
}
signed main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(0);
int tt = 1;
// cin >> tt;
while (tt--) {
solve();
}
}
d3nominator