結果
| 問題 |
No.1232 2^x = x
|
| コンテスト | |
| ユーザー |
uni_python
|
| 提出日時 | 2020-09-20 15:36:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 2,000 ms |
| コード長 | 371 bytes |
| コンパイル時間 | 311 ms |
| コンパイル使用メモリ | 81,944 KB |
| 実行使用メモリ | 59,904 KB |
| 最終ジャッジ日時 | 2024-06-24 10:45:44 |
| 合計ジャッジ時間 | 1,268 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 |
ソースコード
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()
uni_python