結果
問題 | No.1232 2^x = x |
ユーザー | uni_python |
提出日時 | 2020-09-20 15:36:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 80 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 1,018 ms |
コンパイル使用メモリ | 86,700 KB |
実行使用メモリ | 75,240 KB |
最終ジャッジ日時 | 2023-09-06 16:19:36 |
合計ジャッジ時間 | 1,735 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 68 ms
71,120 KB |
testcase_01 | AC | 80 ms
75,240 KB |
testcase_02 | AC | 77 ms
75,232 KB |
testcase_03 | AC | 78 ms
75,212 KB |
ソースコード
import sys input=sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) def main(): N=I() def calc(p): if p==2: print(2) else: print((p-1)**2) for _ in range(N): p=I() calc(p) main()