結果
| 問題 |
No.2189 六平方和
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2023-01-13 22:14:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 200 bytes |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-24 17:51:45 |
| 合計ジャッジ時間 | 5,868 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 28 |
ソースコード
from math import sqrt
N,M,mod=map(int,input().split())
A=pow(M,N,mod)
ANS=[]
while A>0:
k=int(sqrt(A))
ANS.append(k)
A-=k*k
A%=mod
while len(ANS)<6:
ANS.append(0)
print(*ANS)
titia