結果

問題 No.1089 三変数方程式
ユーザー TakoKurageTakoKurage
提出日時 2020-08-08 23:55:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 61,252 KB
最終ジャッジ日時 2024-04-10 08:09:46
合計ジャッジ時間 1,987 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,476 KB
testcase_01 AC 39 ms
52,604 KB
testcase_02 AC 42 ms
60,124 KB
testcase_03 AC 59 ms
60,268 KB
testcase_04 AC 42 ms
60,400 KB
testcase_05 AC 68 ms
60,260 KB
testcase_06 AC 50 ms
60,092 KB
testcase_07 AC 45 ms
60,200 KB
testcase_08 AC 65 ms
60,308 KB
testcase_09 AC 42 ms
59,628 KB
testcase_10 AC 63 ms
60,764 KB
testcase_11 AC 48 ms
60,512 KB
testcase_12 AC 54 ms
60,872 KB
testcase_13 AC 48 ms
60,468 KB
testcase_14 AC 59 ms
61,252 KB
testcase_15 AC 64 ms
60,196 KB
testcase_16 AC 59 ms
60,416 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