結果

問題 No.2734 Addition and Multiplication in yukicoder (Hard)
コンテスト
ユーザー titia
提出日時 2024-04-22 02:57:13
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 326 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 758 ms
コンパイル使用メモリ 20,700 KB
実行使用メモリ 190,660 KB
最終ジャッジ日時 2026-05-01 12:16:04
合計ジャッジ時間 36,641 ms
ジャッジサーバーID
(参考情報)
<nil> / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 RE * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline
sys.set_int_max_str_digits(10**6)
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