結果
問題 |
No.2358 xy+yz+zx=N
|
ユーザー |
|
提出日時 | 2023-06-23 21:41:57 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 240 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 87,552 KB |
最終ジャッジ日時 | 2024-07-01 17:27:54 |
合計ジャッジ時間 | 4,327 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 TLE * 1 -- * 5 |
ソースコード
N = int(input()) results = [] for x in range(N+1): for y in range(N+1): if x + y == 0: continue z = N - x*y if z >= 0 and z % (x+y) == 0: results.append((x, y, z // (x+y))) print(len(results)) for result in results: print(*result)