結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー loop0919loop0919
提出日時 2024-04-19 21:25:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 250 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 82,488 KB
実行使用メモリ 111,792 KB
最終ジャッジ日時 2024-04-19 21:25:30
合計ジャッジ時間 4,750 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
51,584 KB
testcase_01 AC 33 ms
51,584 KB
testcase_02 AC 210 ms
111,544 KB
testcase_03 AC 196 ms
107,136 KB
testcase_04 AC 203 ms
107,776 KB
testcase_05 AC 226 ms
107,904 KB
testcase_06 AC 236 ms
111,704 KB
testcase_07 AC 217 ms
100,224 KB
testcase_08 AC 212 ms
111,792 KB
testcase_09 AC 35 ms
51,456 KB
testcase_10 AC 34 ms
51,584 KB
testcase_11 AC 34 ms
51,712 KB
testcase_12 AC 222 ms
111,776 KB
testcase_13 AC 250 ms
111,776 KB
testcase_14 AC 221 ms
111,396 KB
testcase_15 AC 228 ms
111,264 KB
testcase_16 AC 177 ms
97,664 KB
testcase_17 AC 171 ms
97,792 KB
testcase_18 AC 200 ms
103,900 KB
testcase_19 AC 193 ms
97,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353

N = int(input())
A = sorted(map(int, input().split()))

print(sum(pow(10, N-i-1, MOD) * a for i, a in enumerate(A)) % MOD)
0