結果

問題 No.1089 三変数方程式
ユーザー DrDrpilotDrDrpilot
提出日時 2022-04-13 14:12:34
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 150 bytes
コンパイル時間 1,426 ms
コンパイル使用メモリ 86,960 KB
実行使用メモリ 781,896 KB
最終ジャッジ日時 2023-08-25 00:25:39
合計ジャッジ時間 16,872 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,384 KB
testcase_01 AC 84 ms
70,932 KB
testcase_02 AC 94 ms
86,548 KB
testcase_03 AC 1,374 ms
500,012 KB
testcase_04 AC 127 ms
104,496 KB
testcase_05 TLE -
testcase_06 AC 507 ms
224,888 KB
testcase_07 AC 231 ms
147,624 KB
testcase_08 MLE -
testcase_09 AC 102 ms
92,376 KB
testcase_10 MLE -
testcase_11 AC 413 ms
224,768 KB
testcase_12 AC 1,131 ms
472,972 KB
testcase_13 AC 446 ms
225,172 KB
testcase_14 AC 1,309 ms
472,980 KB
testcase_15 MLE -
testcase_16 MLE -
権限があれば一括ダウンロードができます

ソースコード

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