結果

問題 No.1232 2^x = x
ユーザー 👑 rin204
提出日時 2022-02-25 08:03:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 126 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 65,648 KB
最終ジャッジ日時 2024-07-02 23:18:32
合計ジャッジ時間 1,181 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
for _ in range(n):
    p = int(input())
    if p == 2:
        print(2)
    else:
        print((p - 1) ** 2)
0