結果
問題 |
No.2358 xy+yz+zx=N
|
ユーザー |
![]() |
提出日時 | 2023-07-15 06:20:33 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 332 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 79,232 KB |
最終ジャッジ日時 | 2024-09-16 14:45:19 |
合計ジャッジ時間 | 15,710 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 WA * 6 |
ソースコード
# coding: utf-8 # Your code here! N=int(input()) #xy+yz+zx=(N-x**2-y**2-z**2)/2 ITER=3400 ans=[] for x in range(ITER): for y in range(ITER): if x+y==0: continue z=(N-x*y)/(x+y) if z==z//1 and z>=0: ans.append([x,y,int(z//1)]) print(len(ans)) for item in ans: print(*item)