結果

問題 No.1089 三変数方程式
ユーザー tomoyaatcoder
提出日時 2020-08-01 18:06:42
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 219 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 82,412 KB
実行使用メモリ 66,436 KB
最終ジャッジ日時 2024-07-08 03:11:42
合計ジャッジ時間 1,851 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.stdin = open("stdin.txt")
input = sys.stdin.readline

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