結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,228 KB
testcase_01 AC 35 ms
53,400 KB
testcase_02 AC 44 ms
59,916 KB
testcase_03 AC 61 ms
59,884 KB
testcase_04 AC 44 ms
58,820 KB
testcase_05 AC 69 ms
60,388 KB
testcase_06 AC 48 ms
60,148 KB
testcase_07 AC 44 ms
60,060 KB
testcase_08 AC 63 ms
59,908 KB
testcase_09 AC 41 ms
59,540 KB
testcase_10 AC 60 ms
59,864 KB
testcase_11 AC 47 ms
60,060 KB
testcase_12 AC 56 ms
60,820 KB
testcase_13 AC 47 ms
60,272 KB
testcase_14 AC 62 ms
60,544 KB
testcase_15 AC 64 ms
60,960 KB
testcase_16 AC 61 ms
61,072 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