結果

問題 No.1089 三変数方程式
ユーザー masayamatu
提出日時 2020-06-24 22:06:07
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 241 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-07-03 20:23:22
合計ジャッジ時間 14,887 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *


n = int(input())
ans = 0

for x in range(n+1):
    for y in range(n+1-x):
        z = n - x - y
        if (z < 0) or (z > n):
            continue
        elif(x + y + z) == n:
            ans += 1
 
print(ans)      
0