結果

問題 No.1232 2^x = x
ユーザー persimmon-persimmonpersimmon-persimmon
提出日時 2021-03-04 09:24:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 119 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 82,488 KB
実行使用メモリ 65,432 KB
最終ジャッジ日時 2024-04-15 03:09:28
合計ジャッジ時間 976 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,356 KB
testcase_01 AC 55 ms
64,116 KB
testcase_02 AC 52 ms
65,432 KB
testcase_03 AC 52 ms
64,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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