結果
| 問題 | No.1232 2^x = x |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-19 13:56:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 2,000 ms |
| + 518µs | |
| コード長 | 308 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 95,852 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-07-27 22:28:36 |
| 合計ジャッジ時間 | 1,898 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 |
ソースコード
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")
n = int(input())
ps = [int(input()) for _ in range(n)]
def sub(p):
if p==2:
return 2
return (p-1)**2
write("\n".join(map(str, [sub(p) for p in ps])))