結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー i_takui_taku
提出日時 2024-04-20 15:37:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 163 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 1,374 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 112,060 KB
最終ジャッジ日時 2024-04-20 15:37:50
合計ジャッジ時間 4,240 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
51,712 KB
testcase_01 AC 49 ms
51,584 KB
testcase_02 AC 155 ms
112,060 KB
testcase_03 AC 138 ms
105,728 KB
testcase_04 AC 139 ms
106,624 KB
testcase_05 AC 142 ms
108,672 KB
testcase_06 AC 160 ms
108,580 KB
testcase_07 AC 156 ms
101,848 KB
testcase_08 AC 155 ms
108,392 KB
testcase_09 AC 44 ms
51,456 KB
testcase_10 AC 44 ms
52,096 KB
testcase_11 AC 44 ms
51,584 KB
testcase_12 AC 163 ms
108,448 KB
testcase_13 AC 161 ms
108,828 KB
testcase_14 AC 162 ms
108,324 KB
testcase_15 AC 161 ms
108,240 KB
testcase_16 AC 134 ms
97,920 KB
testcase_17 AC 136 ms
98,128 KB
testcase_18 AC 149 ms
103,572 KB
testcase_19 AC 133 ms
97,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
MOD = 998_244_353
x = 0
for a in sorted(A):
    x *= 10
    x += a
    x %= MOD
print(x)
0