結果
| 問題 | No.2358 xy+yz+zx=N |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-23 21:41:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 219 ms |
| コンパイル使用メモリ | 95,688 KB |
| 実行使用メモリ | 83,712 KB |
| 最終ジャッジ日時 | 2026-08-03 10:33:53 |
| 合計ジャッジ時間 | 8,125 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 2 -- * 4 |
ソースコード
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)