結果
問題 | No.1529 Constant Lcm |
ユーザー | None |
提出日時 | 2021-07-13 09:30:14 |
言語 | PyPy3 (7.3.13) |
結果 |
TLE
|
実行時間 | - |
コード長 | 156 bytes |
コンパイル時間 | 432 ms |
コンパイル使用メモリ | 86,944 KB |
実行使用メモリ | 75,948 KB |
最終ジャッジ日時 | 2023-09-15 06:50:47 |
合計ジャッジ時間 | 5,756 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
75,776 KB |
testcase_01 | AC | 81 ms
75,948 KB |
testcase_02 | AC | 68 ms
71,356 KB |
testcase_03 | AC | 72 ms
71,528 KB |
testcase_04 | AC | 73 ms
71,668 KB |
testcase_05 | AC | 71 ms
71,364 KB |
testcase_06 | AC | 69 ms
71,472 KB |
testcase_07 | AC | 71 ms
71,188 KB |
testcase_08 | AC | 70 ms
71,284 KB |
testcase_09 | AC | 70 ms
71,532 KB |
testcase_10 | TLE | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
ソースコード
from math import gcd def lcm(x,y): return x*y//gcd(x,y) MOD=998244353 N=int(input()) res=1 for n in range(1,N): res=lcm(res,n*(N-n)) print(res%MOD)