結果

問題 No.1089 三変数方程式
ユーザー osrgy01osrgy01
提出日時 2021-05-12 10:52:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,402 ms / 2,000 ms
コード長 119 bytes
コンパイル時間 541 ms
コンパイル使用メモリ 11,744 KB
実行使用メモリ 10,112 KB
最終ジャッジ日時 2023-10-23 22:57:58
合計ジャッジ時間 11,173 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,112 KB
testcase_01 AC 29 ms
10,112 KB
testcase_02 AC 52 ms
10,112 KB
testcase_03 AC 896 ms
10,112 KB
testcase_04 AC 77 ms
10,112 KB
testcase_05 AC 1,402 ms
10,112 KB
testcase_06 AC 316 ms
10,112 KB
testcase_07 AC 161 ms
10,112 KB
testcase_08 AC 1,124 ms
10,112 KB
testcase_09 AC 62 ms
10,112 KB
testcase_10 AC 987 ms
10,112 KB
testcase_11 AC 309 ms
10,112 KB
testcase_12 AC 740 ms
10,112 KB
testcase_13 AC 316 ms
10,112 KB
testcase_14 AC 853 ms
10,112 KB
testcase_15 AC 1,138 ms
10,112 KB
testcase_16 AC 974 ms
10,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=0
for i in range(n+1):
    for j in range(n+1):
        if i+j>n: continue
        ans+=1
print(ans)
0