結果

問題 No.1089 三変数方程式
ユーザー TakoKurageTakoKurage
提出日時 2020-06-24 20:24:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,806 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-09-16 21:18:15
合計ジャッジ時間 13,260 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,808 KB
testcase_01 AC 16 ms
7,896 KB
testcase_02 AC 44 ms
7,844 KB
testcase_03 AC 1,189 ms
7,852 KB
testcase_04 AC 73 ms
7,800 KB
testcase_05 AC 1,806 ms
7,896 KB
testcase_06 AC 391 ms
7,884 KB
testcase_07 AC 182 ms
7,848 KB
testcase_08 AC 1,511 ms
7,940 KB
testcase_09 AC 60 ms
7,784 KB
testcase_10 AC 1,266 ms
7,856 KB
testcase_11 AC 386 ms
7,812 KB
testcase_12 AC 1,008 ms
7,812 KB
testcase_13 AC 389 ms
7,860 KB
testcase_14 AC 1,105 ms
7,860 KB
testcase_15 AC 1,495 ms
7,732 KB
testcase_16 AC 1,298 ms
7,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

cnt = 0
for x in range(N + 1):
    for y in range(N + 1):
        z = N - x - y
        if z >= 0:
            cnt += 1

print(cnt)
0