結果

問題 No.1089 三変数方程式
ユーザー Konton7Konton7
提出日時 2020-06-26 21:28:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 1,453 ms
コンパイル使用メモリ 86,604 KB
実行使用メモリ 76,456 KB
最終ジャッジ日時 2023-09-18 03:01:08
合計ジャッジ時間 4,327 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
76,132 KB
testcase_01 AC 97 ms
76,336 KB
testcase_02 AC 99 ms
76,208 KB
testcase_03 AC 123 ms
76,396 KB
testcase_04 AC 100 ms
76,184 KB
testcase_05 AC 117 ms
76,344 KB
testcase_06 AC 125 ms
76,416 KB
testcase_07 AC 103 ms
76,188 KB
testcase_08 AC 121 ms
76,236 KB
testcase_09 AC 99 ms
76,456 KB
testcase_10 AC 125 ms
76,244 KB
testcase_11 AC 124 ms
76,072 KB
testcase_12 AC 126 ms
76,196 KB
testcase_13 AC 123 ms
76,224 KB
testcase_14 AC 122 ms
76,244 KB
testcase_15 AC 118 ms
76,240 KB
testcase_16 AC 123 ms
76,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 0
for i in range(3001):
    for j in range(3001):
        k = n - i - j
        if 0 <= k <= 3000:
            ans += 1
print(ans)
0