結果
| 問題 | No.2189 六平方和 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2022-12-16 02:31:25 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 250 ms / 2,000 ms |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 859 ms |
| コンパイル使用メモリ | 84,884 KB |
| 実行使用メモリ | 263,168 KB |
| 最終ジャッジ日時 | 2026-05-21 05:09:54 |
| 合計ジャッジ時間 | 5,272 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
ソースコード
N,M,B=map(int,input().split())
X=pow(M,N,B)
print("YES")
d={i*i%B:i for i in range(10**6)}
import random
while True:
a=random.randint(0,B-1)
b=random.randint(0,B-1)
c=random.randint(0,B-1)
dd=(X-a*a-b*b-c*c)%B
if dd in d:
print(a,b,c,d[dd],0,0)
exit()
testestest