結果

問題 No.1529 Constant Lcm
ユーザー hell_walker
提出日時 2021-06-04 21:09:11
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 139 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 24,648 KB
最終ジャッジ日時 2024-11-19 11:24:51
合計ジャッジ時間 61,874 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 TLE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n=int(input())
res=n-1
for i in range(n-1):
    res = ((i+1)*(n-(i+1))*res)//math.gcd((i+1)*(n-(i+1)),res)
print(res%998244353)
0