結果
| 問題 | 
                            No.1089 三変数方程式
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-06-24 22:02:56 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 235 bytes | 
| コンパイル時間 | 128 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 17,952 KB | 
| 最終ジャッジ日時 | 2024-07-03 20:21:53 | 
| 合計ジャッジ時間 | 5,971 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 TLE * 3 | 
ソースコード
from decimal import *
n = int(input())
ans = 0
for x in range(n+1):
    for y in range(n+1):
        z = n - x - y
        if (z < 0) or (z > n):
            continue
        elif(x + y + z) == n:
            ans += 1
 
print(ans)