結果

問題 No.1629 Sorting Integers (SUM of M)
ユーザー tailstails
提出日時 2021-07-30 21:31:02
言語 cLay
(20240104-1)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 4,082 ms
コンパイル使用メモリ 176,100 KB
実行使用メモリ 4,844 KB
最終ジャッジ日時 2023-09-19 02:32:24
合計ジャッジ時間 5,446 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 3 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 4 ms
4,376 KB
testcase_08 AC 3 ms
4,376 KB
testcase_09 AC 3 ms
4,380 KB
testcase_10 AC 3 ms
4,376 KB
testcase_11 AC 3 ms
4,380 KB
testcase_12 AC 3 ms
4,376 KB
testcase_13 AC 3 ms
4,376 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 3 ms
4,380 KB
testcase_16 AC 3 ms
4,376 KB
testcase_17 AC 5 ms
4,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll c[9];
{
ll@n;rd(c(9));
Comb<Mint>C;
Mint m=sum[Mint][i,0,9]((i+1)*c[i])*C.fac(n);
m*=C.ifac(c[0..8]);
wt(m/n*((Mint(10)**n)-1)/9);
}
0