結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー rlangevinrlangevin
提出日時 2024-04-19 21:22:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 112,380 KB
最終ジャッジ日時 2024-04-19 21:23:07
合計ジャッジ時間 3,275 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,628 KB
testcase_01 AC 34 ms
53,088 KB
testcase_02 AC 139 ms
112,380 KB
testcase_03 AC 112 ms
106,972 KB
testcase_04 AC 115 ms
106,940 KB
testcase_05 AC 117 ms
108,904 KB
testcase_06 AC 134 ms
108,636 KB
testcase_07 AC 131 ms
102,144 KB
testcase_08 AC 124 ms
108,076 KB
testcase_09 AC 35 ms
53,376 KB
testcase_10 AC 36 ms
53,084 KB
testcase_11 AC 36 ms
53,456 KB
testcase_12 AC 135 ms
108,416 KB
testcase_13 AC 132 ms
109,020 KB
testcase_14 AC 130 ms
108,332 KB
testcase_15 AC 142 ms
108,272 KB
testcase_16 AC 107 ms
97,924 KB
testcase_17 AC 107 ms
98,088 KB
testcase_18 AC 124 ms
103,576 KB
testcase_19 AC 107 ms
97,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = sorted(list(map(int, input().split())))
ans = 0
mod = 998244353
for a in A:
    ans *= 10
    ans += a
    ans %= mod
    
print(ans)
    
0