結果

問題 No.1232 2^x = x
ユーザー shotoyoo
提出日時 2020-09-19 13:56:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 82,496 KB
実行使用メモリ 55,348 KB
最終ジャッジ日時 2024-06-23 13:40:33
合計ジャッジ時間 959 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

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