結果

問題 No.1232 2^x = x
ユーザー raven7959raven7959
提出日時 2021-08-11 08:17:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 116 bytes
コンパイル時間 600 ms
コンパイル使用メモリ 81,852 KB
実行使用メモリ 65,820 KB
最終ジャッジ日時 2023-10-24 22:07:41
合計ジャッジ時間 1,758 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
53,432 KB
testcase_01 AC 61 ms
63,748 KB
testcase_02 AC 57 ms
65,820 KB
testcase_03 AC 56 ms
65,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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