結果

問題 No.2734 Addition and Multiplication in yukicoder (Hard)
ユーザー AwashAmityOak
提出日時 2024-04-19 23:01:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 642 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 101,888 KB
最終ジャッジ日時 2024-10-11 17:07:02
合計ジャッジ時間 7,825 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 1 WA * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations as perm

MOD = 998244353

N = int(input())
A = input().split()
A.sort()

x = 0
for a in A:
	for _ in range(len(a)):
		x *= 10
		x %= MOD
	x += int(a)
	x %= MOD

print(x)
0