結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,496 KB
testcase_01 AC 27 ms
10,496 KB
testcase_02 AC 188 ms
35,600 KB
testcase_03 AC 219 ms
29,396 KB
testcase_04 AC 220 ms
30,724 KB
testcase_05 AC 214 ms
30,840 KB
testcase_06 AC 248 ms
33,156 KB
testcase_07 AC 260 ms
32,400 KB
testcase_08 AC 191 ms
34,060 KB
testcase_09 AC 26 ms
10,624 KB
testcase_10 AC 25 ms
10,496 KB
testcase_11 AC 26 ms
10,624 KB
testcase_12 AC 258 ms
33,156 KB
testcase_13 AC 255 ms
33,164 KB
testcase_14 AC 254 ms
33,160 KB
testcase_15 AC 261 ms
33,164 KB
testcase_16 AC 186 ms
25,536 KB
testcase_17 AC 194 ms
25,732 KB
testcase_18 AC 225 ms
29,360 KB
testcase_19 AC 176 ms
25,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

mod=998244353

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

A.sort()

x=0

for i in range(N):
    x=10*x+A[i]
    x%=mod

print(x%mod)
0