結果

問題 No.1089 三変数方程式
ユーザー DrDrpilotDrDrpilot
提出日時 2022-04-13 14:11:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 150 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 494,840 KB
最終ジャッジ日時 2023-08-25 00:25:17
合計ジャッジ時間 4,487 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
12,212 KB
testcase_01 AC 15 ms
7,976 KB
testcase_02 AC 73 ms
14,888 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=set()
for x in range(n+1):
    for y in range(n+1):
        z=n-(x+y)
        if z>=0:
            ans.add((x,y,z))
print(len(ans))
0