結果
問題 | No.2358 xy+yz+zx=N |
ユーザー | titia |
提出日時 | 2023-06-23 22:24:09 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 242 bytes |
コンパイル時間 | 332 ms |
コンパイル使用メモリ | 87,084 KB |
実行使用メモリ | 76,764 KB |
最終ジャッジ日時 | 2023-09-14 10:11:37 |
合計ジャッジ時間 | 4,954 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
75,580 KB |
testcase_01 | AC | 70 ms
71,148 KB |
testcase_02 | AC | 72 ms
71,408 KB |
testcase_03 | AC | 72 ms
71,536 KB |
testcase_04 | AC | 71 ms
71,416 KB |
testcase_05 | AC | 72 ms
71,348 KB |
testcase_06 | AC | 80 ms
76,380 KB |
testcase_07 | AC | 102 ms
76,764 KB |
testcase_08 | TLE | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
ソースコード
N=int(input()) ANS=[] for x in range(N+1): for y in range(N+1): if x*y>N: break if x+y!=0 and (N-x*y)%(x+y)==0: ANS.append((x,y,(N-x*y)//(x+y))) print(len(ANS)) for x,y,z in ANS: print(x,y,z)