結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー hotate29hotate29
提出日時 2024-04-19 21:29:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 259 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 35,728 KB
最終ジャッジ日時 2024-04-19 21:29:56
合計ジャッジ時間 4,800 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,624 KB
testcase_01 AC 25 ms
10,624 KB
testcase_02 AC 170 ms
35,728 KB
testcase_03 AC 220 ms
29,396 KB
testcase_04 AC 213 ms
30,972 KB
testcase_05 AC 220 ms
31,104 KB
testcase_06 AC 249 ms
34,696 KB
testcase_07 AC 259 ms
32,648 KB
testcase_08 AC 187 ms
34,196 KB
testcase_09 AC 27 ms
10,496 KB
testcase_10 AC 25 ms
10,624 KB
testcase_11 AC 25 ms
10,624 KB
testcase_12 AC 247 ms
34,820 KB
testcase_13 AC 257 ms
34,768 KB
testcase_14 AC 255 ms
34,696 KB
testcase_15 AC 256 ms
34,824 KB
testcase_16 AC 173 ms
25,580 KB
testcase_17 AC 174 ms
25,860 KB
testcase_18 AC 213 ms
29,488 KB
testcase_19 AC 175 ms
25,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353

n = int(input())
a = list(map(int, input().split()))
a.sort()

x = 0
for ai in a:
    x *= 10
    x += ai
    x %= MOD

print(x)
0