結果

問題 No.2734 Addition and Multiplication in yukicoder (Hard)
コンテスト
ユーザー titia
提出日時 2024-04-22 02:58:05
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
TLE  
実行時間 -
コード長 326 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 265 ms
コンパイル使用メモリ 84,992 KB
実行使用メモリ 761,344 KB
最終ジャッジ日時 2026-05-01 12:19:55
合計ジャッジ時間 18,787 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 TLE * 2 MLE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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