結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー anonymouslyanonymously
提出日時 2024-04-19 21:42:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 338 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 35,484 KB
最終ジャッジ日時 2024-04-19 21:42:27
合計ジャッジ時間 5,427 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,624 KB
testcase_01 AC 34 ms
10,624 KB
testcase_02 AC 201 ms
35,484 KB
testcase_03 AC 235 ms
29,384 KB
testcase_04 AC 272 ms
30,816 KB
testcase_05 AC 238 ms
30,980 KB
testcase_06 AC 285 ms
34,700 KB
testcase_07 AC 284 ms
32,532 KB
testcase_08 AC 204 ms
33,944 KB
testcase_09 AC 29 ms
10,496 KB
testcase_10 AC 29 ms
10,624 KB
testcase_11 AC 30 ms
10,496 KB
testcase_12 AC 293 ms
34,576 KB
testcase_13 AC 289 ms
34,568 KB
testcase_14 AC 294 ms
34,576 KB
testcase_15 AC 338 ms
34,576 KB
testcase_16 AC 214 ms
25,332 KB
testcase_17 AC 214 ms
25,736 KB
testcase_18 AC 303 ms
29,240 KB
testcase_19 AC 210 ms
25,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M = 998244353
n = int(input())
A = [int(_) for _ in input().split()]
A.sort()
S = 0
for i in range(n):
    S = (10 * S + A[i]) % M

print(S)
0