結果

問題 No.1422 Social Distance in Train
ユーザー seiyu_kyoproseiyu_kyopro
提出日時 2021-10-09 17:51:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 213 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 45,528 KB
最終ジャッジ日時 2023-08-22 09:12:01
合計ジャッジ時間 4,667 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 207 ms
45,528 KB
testcase_01 AC 207 ms
45,284 KB
testcase_02 AC 208 ms
45,484 KB
testcase_03 AC 207 ms
45,436 KB
testcase_04 AC 206 ms
45,228 KB
testcase_05 AC 210 ms
45,240 KB
testcase_06 AC 210 ms
45,280 KB
testcase_07 AC 210 ms
45,300 KB
testcase_08 AC 212 ms
45,344 KB
testcase_09 AC 212 ms
45,296 KB
testcase_10 AC 210 ms
45,452 KB
testcase_11 AC 209 ms
45,344 KB
testcase_12 AC 213 ms
45,428 KB
testcase_13 AC 211 ms
45,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.special import comb

n = int(input())

a = n - (n + 1) // 2 + 1
b = (n + 1) // 2

# print(a, b)

print(comb(a, b, exact = True))
0