結果

問題 No.152 貯金箱の消失
ユーザー fmhrfmhr
提出日時 2015-02-16 00:18:48
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 412 bytes
コンパイル時間 420 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 78,276 KB
最終ジャッジ日時 2023-09-06 01:31:20
合計ジャッジ時間 8,604 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,292 KB
testcase_01 AC 79 ms
71,464 KB
testcase_02 AC 76 ms
71,356 KB
testcase_03 AC 77 ms
71,252 KB
testcase_04 AC 95 ms
76,344 KB
testcase_05 AC 91 ms
76,636 KB
testcase_06 AC 98 ms
76,384 KB
testcase_07 AC 409 ms
78,276 KB
testcase_08 TLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

L = int(input())
ans = []
p = []
for m in range(1, L//10, 1):
    a = 4*(m**2+m**2+2*m)
    if a > L:
        continue
    for n in range(1, m, 1):
        if (m-n)%2 == 1:
            q = (m**2+n**2)+(2*m*n)+(m**2-n**2)
            if q * 4 < L:
                if m/n not in p:
                    p.append(m/n)
                    ans.append(q)
            else:
                break

print(len(ans)%1000003)
0