結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー miya145592miya145592
提出日時 2024-04-19 21:28:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 82,224 KB
実行使用メモリ 112,004 KB
最終ジャッジ日時 2024-04-19 21:28:46
合計ジャッジ時間 3,136 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,068 KB
testcase_01 AC 33 ms
53,256 KB
testcase_02 AC 130 ms
112,004 KB
testcase_03 AC 111 ms
104,512 KB
testcase_04 AC 112 ms
104,264 KB
testcase_05 AC 113 ms
105,540 KB
testcase_06 AC 126 ms
106,852 KB
testcase_07 AC 124 ms
100,240 KB
testcase_08 AC 117 ms
106,396 KB
testcase_09 AC 33 ms
53,568 KB
testcase_10 AC 33 ms
53,148 KB
testcase_11 AC 33 ms
52,964 KB
testcase_12 AC 127 ms
107,112 KB
testcase_13 AC 126 ms
107,372 KB
testcase_14 AC 124 ms
106,812 KB
testcase_15 AC 128 ms
106,836 KB
testcase_16 AC 100 ms
95,308 KB
testcase_17 AC 103 ms
95,864 KB
testcase_18 AC 117 ms
102,172 KB
testcase_19 AC 101 ms
95,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
MOD = 998244353
N = int(input())
A = list(map(int, input().split()))
A.sort()
x = 0
for a in A:
    x = (10*x%MOD + a)%MOD
print(x)
0