結果

問題 No.1089 三変数方程式
ユーザー tanon710tanon710
提出日時 2020-07-07 23:58:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 62,072 KB
最終ジャッジ日時 2024-04-09 21:24:48
合計ジャッジ時間 2,055 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
59,340 KB
testcase_01 AC 60 ms
60,056 KB
testcase_02 AC 59 ms
60,872 KB
testcase_03 AC 66 ms
60,844 KB
testcase_04 AC 58 ms
60,444 KB
testcase_05 AC 69 ms
59,896 KB
testcase_06 AC 67 ms
61,612 KB
testcase_07 AC 59 ms
59,964 KB
testcase_08 AC 79 ms
61,504 KB
testcase_09 AC 63 ms
60,044 KB
testcase_10 AC 67 ms
62,072 KB
testcase_11 AC 66 ms
60,592 KB
testcase_12 AC 64 ms
60,852 KB
testcase_13 AC 66 ms
62,020 KB
testcase_14 AC 66 ms
60,316 KB
testcase_15 AC 73 ms
60,316 KB
testcase_16 AC 65 ms
60,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

import sys
input=sys.stdin.readline

n=int(input())
ans=0
for x in range(3*10**3+1):
    for y in range(3*10**3+1):
        if n-x-y>=0:
            ans+=1
print(ans)
0