結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー YU HiroseYU Hirose
提出日時 2024-05-07 00:37:51
言語 Julia
(2.11.2)
結果
AC  
実行時間 422 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 263,220 KB
最終ジャッジ日時 2024-11-29 11:54:06
合計ジャッジ時間 9,536 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

function solve()
    n = parse(Int, readline())
    a = readline() |> split |> x -> parse.(Int, x)
    a = sort(a)
    result = 0
    m = 998244353
    for ai = a
        result = 10 * result + ai
        result = result % m
    end
    println(result)
end
solve()
0