結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー kusirakusirakusirakusira
提出日時 2024-03-14 13:05:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 148 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 111,584 KB
最終ジャッジ日時 2024-03-14 13:05:36
合計ジャッジ時間 5,322 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,332 KB
testcase_01 AC 35 ms
53,332 KB
testcase_02 AC 139 ms
111,584 KB
testcase_03 AC 115 ms
104,560 KB
testcase_04 AC 116 ms
104,892 KB
testcase_05 AC 119 ms
106,812 KB
testcase_06 AC 135 ms
106,560 KB
testcase_07 AC 132 ms
100,240 KB
testcase_08 AC 124 ms
106,124 KB
testcase_09 AC 35 ms
53,332 KB
testcase_10 AC 35 ms
53,332 KB
testcase_11 AC 35 ms
53,332 KB
testcase_12 AC 136 ms
106,564 KB
testcase_13 AC 136 ms
106,952 KB
testcase_14 AC 135 ms
106,436 KB
testcase_15 AC 138 ms
106,432 KB
testcase_16 AC 108 ms
97,476 KB
testcase_17 AC 111 ms
97,596 KB
testcase_18 AC 125 ms
101,628 KB
testcase_19 AC 111 ms
97,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))

mod = 998244353
A.sort()
x = 0
for i in range(n):
    x = x * 10 + A[i]
    x %= mod

print(x)
0