結果

問題 No.1232 2^x = x
ユーザー naniwazunaniwazu
提出日時 2020-09-18 23:43:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 1,717 ms
コンパイル使用メモリ 86,632 KB
実行使用メモリ 76,144 KB
最終ジャッジ日時 2023-09-04 11:52:12
合計ジャッジ時間 3,102 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
70,700 KB
testcase_01 AC 101 ms
75,932 KB
testcase_02 AC 99 ms
76,144 KB
testcase_03 AC 99 ms
75,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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