結果

問題 No.2224 UFO Game
ユーザー ShirotsumeShirotsume
提出日時 2023-04-08 18:24:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 383 ms
コンパイル使用メモリ 82,320 KB
実行使用メモリ 54,932 KB
最終ジャッジ日時 2024-04-14 15:13:04
合計ジャッジ時間 1,702 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,724 KB
testcase_01 AC 40 ms
53,948 KB
testcase_02 AC 41 ms
54,576 KB
testcase_03 AC 41 ms
53,288 KB
testcase_04 AC 41 ms
54,688 KB
testcase_05 AC 41 ms
54,244 KB
testcase_06 AC 43 ms
54,932 KB
testcase_07 AC 40 ms
53,532 KB
testcase_08 AC 42 ms
53,688 KB
testcase_09 AC 41 ms
54,480 KB
testcase_10 AC 40 ms
54,220 KB
testcase_11 AC 42 ms
54,272 KB
testcase_12 AC 41 ms
54,860 KB
testcase_13 AC 41 ms
54,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import deque, Counter
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353

s = input()

if s[0] == 'x':
    print(2 ** 32 - int(s[1:]))
else:
    print(int(s))
0