結果

問題 No.1232 2^x = x
ユーザー shotoyooshotoyoo
提出日時 2020-09-19 13:56:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 71,328 KB
最終ジャッジ日時 2023-09-05 18:11:38
合計ジャッジ時間 1,373 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
71,244 KB
testcase_01 AC 84 ms
71,328 KB
testcase_02 AC 82 ms
71,164 KB
testcase_03 AC 80 ms
71,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


n = int(input())
ps = [int(input()) for _ in range(n)]
def sub(p):
    if p==2:
        return 2
    return (p-1)**2
write("\n".join(map(str, [sub(p) for p in ps])))
0