結果

問題 No.2358 xy+yz+zx=N
ユーザー SaimonSaimon
提出日時 2023-11-16 17:04:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 318 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 16,404 KB
最終ジャッジ日時 2023-11-16 17:04:48
合計ジャッジ時間 4,821 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 28 ms
9,984 KB
testcase_02 AC 565 ms
9,984 KB
testcase_03 AC 29 ms
9,984 KB
testcase_04 AC 29 ms
9,984 KB
testcase_05 AC 29 ms
9,984 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

m=0

for i in range(n+1):
    for j in range(n+1):
        for k in range(n+1):

            if (i*j + j*k + k*i) == n:
                m += 1

print(m)

for i in range(n+1):
    for j in range(n+1):
        for k in range(n+1):

            if (i*j + j*k + k*i) == n:
                print(i,j,k,)

0