結果

問題 No.2224 UFO Game
ユーザー evimaevima
提出日時 2023-04-06 01:38:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 353 bytes
コンパイル時間 687 ms
コンパイル使用メモリ 67,264 KB
最終ジャッジ日時 2025-02-11 23:14:17
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;

int main() {
    string s;
    cin >> s;

    if (s[0] == 'x') {
        unsigned int t = 0;
        for (int i = 1; i < s.size(); i++) {
            t = t * 10 + (s[i] - '0');
        }
        cout << (1ULL << 32) - t << endl;
    } else {
        cout << s << endl;
    }

    return 0;
}
0