結果

問題 No.1348 Split Tile
ユーザー convexineqconvexineq
提出日時 2021-01-16 14:36:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 411 ms
コンパイル使用メモリ 87,276 KB
実行使用メモリ 76,220 KB
最終ジャッジ日時 2023-08-18 11:44:11
合計ジャッジ時間 4,341 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,300 KB
testcase_01 AC 80 ms
76,044 KB
testcase_02 AC 77 ms
76,092 KB
testcase_03 AC 90 ms
75,968 KB
testcase_04 AC 87 ms
75,932 KB
testcase_05 AC 82 ms
76,008 KB
testcase_06 AC 78 ms
76,220 KB
testcase_07 AC 92 ms
76,020 KB
testcase_08 AC 86 ms
75,828 KB
testcase_09 AC 87 ms
76,012 KB
testcase_10 AC 89 ms
76,076 KB
testcase_11 AC 79 ms
76,060 KB
testcase_12 AC 86 ms
76,008 KB
testcase_13 AC 86 ms
76,004 KB
testcase_14 AC 85 ms
75,904 KB
testcase_15 AC 88 ms
75,968 KB
testcase_16 AC 83 ms
76,096 KB
testcase_17 AC 80 ms
76,020 KB
testcase_18 AC 84 ms
75,904 KB
testcase_19 AC 82 ms
76,008 KB
testcase_20 AC 83 ms
76,016 KB
testcase_21 AC 81 ms
76,064 KB
testcase_22 AC 88 ms
76,044 KB
testcase_23 AC 92 ms
76,036 KB
testcase_24 AC 90 ms
76,052 KB
testcase_25 AC 89 ms
75,928 KB
testcase_26 AC 89 ms
76,044 KB
testcase_27 AC 90 ms
75,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
MOD = 998244353
a = 0
for i in range(1,n):
    a += (n-1)*(n-i)*i + (n-i)*(n-1)
    a %= MOD
for i in range(1,n-1):
    a = a*i%MOD
print(a)
0