結果

問題 No.1089 三変数方程式
ユーザー tomoyaatcodertomoyaatcoder
提出日時 2020-08-01 18:07:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 148 bytes
コンパイル時間 1,212 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 76,280 KB
最終ジャッジ日時 2023-09-22 11:20:36
合計ジャッジ時間 3,684 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,156 KB
testcase_01 AC 72 ms
71,336 KB
testcase_02 AC 79 ms
76,032 KB
testcase_03 AC 96 ms
76,148 KB
testcase_04 AC 77 ms
76,080 KB
testcase_05 AC 105 ms
76,280 KB
testcase_06 AC 85 ms
75,972 KB
testcase_07 AC 80 ms
76,168 KB
testcase_08 AC 99 ms
76,068 KB
testcase_09 AC 77 ms
76,052 KB
testcase_10 AC 97 ms
76,132 KB
testcase_11 AC 86 ms
75,884 KB
testcase_12 AC 92 ms
76,268 KB
testcase_13 AC 84 ms
76,192 KB
testcase_14 AC 94 ms
75,996 KB
testcase_15 AC 103 ms
76,068 KB
testcase_16 AC 98 ms
76,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

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