結果

問題 No.1089 三変数方程式
ユーザー Konton7
提出日時 2020-06-26 21:28:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 60,800 KB
最終ジャッジ日時 2024-07-04 19:40:23
合計ジャッジ時間 2,081 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

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