結果

問題 No.1422 Social Distance in Train
ユーザー nohakai3nohakai3
提出日時 2022-07-06 15:54:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 134 bytes
コンパイル時間 385 ms
コンパイル使用メモリ 10,484 KB
実行使用メモリ 18,224 KB
最終ジャッジ日時 2023-08-23 14:03:59
合計ジャッジ時間 4,264 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,080 KB
testcase_01 WA -
testcase_02 AC 16 ms
8,080 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
import math
if n%2==0:
    m=n//2
    print(math.factorial(m)*2)
else:
    m=n//2+1
    print(math.factorial(m))
    

0