結果

問題 No.2734 Addition and Multiplication in yukicoder (Hard)
ユーザー LyricalMaestro
提出日時 2024-11-26 00:35:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 102,912 KB
最終ジャッジ日時 2024-11-26 00:35:43
合計ジャッジ時間 8,144 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 1 WA * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

## https://yukicoder.me/problems/no/1612

MOD = 998244353

def main():
    N = int(input())
    A = input().split()

    A.sort()

    answer_str = "".join(A)
    answer = 0
    for a in answer_str:
        answer *= 10
        answer %= MOD
        answer += int(a)
        answer %= MOD
    print(answer)



if __name__ == "__main__":
    main()
0