結果

問題 No.1089 三変数方程式
ユーザー vwxyzvwxyz
提出日時 2022-09-07 00:33:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,492 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-01 18:48:21
合計ジャッジ時間 11,529 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,752 KB
testcase_01 AC 26 ms
10,752 KB
testcase_02 AC 46 ms
10,752 KB
testcase_03 AC 1,034 ms
10,752 KB
testcase_04 AC 72 ms
10,624 KB
testcase_05 AC 1,492 ms
10,752 KB
testcase_06 AC 332 ms
10,752 KB
testcase_07 AC 163 ms
10,752 KB
testcase_08 AC 1,210 ms
10,752 KB
testcase_09 AC 61 ms
10,752 KB
testcase_10 AC 1,028 ms
10,752 KB
testcase_11 AC 326 ms
10,624 KB
testcase_12 AC 838 ms
10,752 KB
testcase_13 AC 369 ms
10,752 KB
testcase_14 AC 934 ms
10,880 KB
testcase_15 AC 1,205 ms
10,752 KB
testcase_16 AC 1,165 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline=sys.stdin.readline
write=sys.stdout.write
from math import gcd as GCD
import math

N=int(readline())
ans=0
for x in range(N+1):
    for y in range(N+1):
        if x+y<=N:
            ans+=1
print(ans)
0