結果
問題 |
No.2224 UFO Game
|
ユーザー |
![]() |
提出日時 | 2024-05-10 15:26:40 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 1,851 ms |
コンパイル使用メモリ | 193,252 KB |
最終ジャッジ日時 | 2025-02-21 12:08:53 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; const ll two32 = 4294967296; int main(){ string S; cin >> S; if(S[0] == 'x'){ ll n = stoi(S.substr(1, S.size())); cout << two32 - n << endl; } else cout << S << endl; }