結果

問題 No.2734 Addition and Multiplication in yukicoder (Hard)
ユーザー titia
提出日時 2024-04-22 02:58:05
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 326 bytes
コンパイル時間 1,773 ms
コンパイル使用メモリ 82,084 KB
実行使用メモリ 773,320 KB
最終ジャッジ日時 2024-10-14 01:44:21
合計ジャッジ時間 14,785 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 MLE * 1 -- * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
sys.set_int_max_str_digits(10**9)
mod=998244353

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

A=list(map(str,A))

B=[]
for s in A:
    X=list(s)
    while len(X)<20:
        X+=list(s)
    B.append((X,list(s)))

B.sort()

X=[]
for _,s in B:
    X+=s

x="".join(X)


print(int(x)%mod)
0