結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー hotate29
提出日時 2024-04-19 21:29:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 295 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 35,596 KB
最終ジャッジ日時 2024-10-11 14:03:44
合計ジャッジ時間 5,411 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353

n = int(input())
a = list(map(int, input().split()))
a.sort()

x = 0
for ai in a:
    x *= 10
    x += ai
    x %= MOD

print(x)
0