結果

問題 No.1232 2^x = x
ユーザー aqua_tenhouaqua_tenhou
提出日時 2021-07-27 22:19:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 133 bytes
コンパイル時間 434 ms
コンパイル使用メモリ 86,820 KB
実行使用メモリ 76,060 KB
最終ジャッジ日時 2023-10-01 01:58:27
合計ジャッジ時間 1,799 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,108 KB
testcase_01 AC 86 ms
75,992 KB
testcase_02 AC 87 ms
75,832 KB
testcase_03 AC 89 ms
76,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
p = [int(input()) for i in range(n)]

for x in p:
    if x == 2:
        print(2)
    else:
        print((x-1)**2)
0