結果

問題 No.2224 UFO Game
ユーザー buey_tbuey_t
提出日時 2023-02-24 21:23:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 249 ms / 2,000 ms
コード長 1,070 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 86,912 KB
実行使用メモリ 92,592 KB
最終ジャッジ日時 2023-10-11 05:44:32
合計ジャッジ時間 4,623 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 241 ms
92,484 KB
testcase_01 AC 234 ms
92,560 KB
testcase_02 AC 237 ms
92,456 KB
testcase_03 AC 233 ms
92,532 KB
testcase_04 AC 236 ms
92,544 KB
testcase_05 AC 236 ms
92,356 KB
testcase_06 AC 235 ms
92,412 KB
testcase_07 AC 237 ms
92,484 KB
testcase_08 AC 242 ms
92,264 KB
testcase_09 AC 238 ms
92,428 KB
testcase_10 AC 249 ms
92,484 KB
testcase_11 AC 240 ms
92,584 KB
testcase_12 AC 238 ms
92,592 KB
testcase_13 AC 240 ms
92,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    try:
        import pypyjit
        pypyjit.set_param('max_unroll_recursion=-1')
    except:
        pass
    try:
        import sys
        sys.setrecursionlimit(10**7)
    except:
        pass
    from math import sqrt,sin,cos,tan,ceil,radians,floor,gcd,exp,log,log10,log2,factorial,fsum
    import heapq
    from bisect import bisect_left, bisect_right
    import copy
    from collections import deque,Counter,defaultdict
    from itertools import permutations,combinations
    from decimal import Decimal,ROUND_HALF_UP
    #tmp = Decimal(mid).quantize(Decimal('0'), rounding=ROUND_HALF_UP)
    from functools import lru_cache, reduce
    #@lru_cache(maxsize=None)
    from operator import add,sub,mul,xor,and_,or_
    INF = 10**18
    mod1 = 10**9+7
    mod2 = 998244353
    
    #DecimalならPython
    
    S = input()
    
    if S[0] == 'x':
        print(pow(2,32)-int(S[1:]))
    else:
        print(int(S))
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
if __name__ == '__main__':
    main()
0