結果

問題 No.2734 Addition and Multiplication in yukicoder (Hard)
ユーザー titia
提出日時 2024-04-22 02:57:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 326 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 197,496 KB
最終ジャッジ日時 2024-10-14 01:43:41
合計ジャッジ時間 14,851 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 TLE * 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