結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー AngrySadEightAngrySadEight
提出日時 2024-03-12 01:43:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 2,422 ms
コンパイル使用メモリ 81,444 KB
実行使用メモリ 111,452 KB
最終ジャッジ日時 2024-03-12 01:43:53
合計ジャッジ時間 4,233 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,332 KB
testcase_01 AC 29 ms
53,332 KB
testcase_02 AC 137 ms
111,452 KB
testcase_03 AC 116 ms
104,432 KB
testcase_04 AC 130 ms
104,636 KB
testcase_05 AC 114 ms
106,684 KB
testcase_06 AC 135 ms
106,428 KB
testcase_07 AC 120 ms
100,240 KB
testcase_08 AC 116 ms
105,996 KB
testcase_09 AC 32 ms
53,332 KB
testcase_10 AC 39 ms
53,332 KB
testcase_11 AC 33 ms
53,332 KB
testcase_12 AC 121 ms
106,432 KB
testcase_13 AC 124 ms
106,816 KB
testcase_14 AC 121 ms
106,308 KB
testcase_15 AC 143 ms
106,304 KB
testcase_16 AC 98 ms
97,476 KB
testcase_17 AC 109 ms
97,596 KB
testcase_18 AC 116 ms
101,376 KB
testcase_19 AC 98 ms
97,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353

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

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