結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー AwashAmityOakAwashAmityOak
提出日時 2024-04-19 21:26:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 82,360 KB
実行使用メモリ 113,152 KB
最終ジャッジ日時 2024-04-19 21:27:10
合計ジャッジ時間 3,368 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,712 KB
testcase_01 AC 33 ms
52,224 KB
testcase_02 AC 133 ms
111,292 KB
testcase_03 AC 121 ms
110,080 KB
testcase_04 AC 133 ms
113,152 KB
testcase_05 AC 131 ms
106,368 KB
testcase_06 AC 136 ms
111,392 KB
testcase_07 AC 131 ms
104,548 KB
testcase_08 AC 129 ms
110,948 KB
testcase_09 AC 33 ms
51,584 KB
testcase_10 AC 33 ms
51,328 KB
testcase_11 AC 35 ms
51,584 KB
testcase_12 AC 136 ms
111,268 KB
testcase_13 AC 136 ms
111,908 KB
testcase_14 AC 137 ms
111,252 KB
testcase_15 AC 139 ms
111,140 KB
testcase_16 AC 111 ms
97,408 KB
testcase_17 AC 112 ms
97,664 KB
testcase_18 AC 128 ms
105,568 KB
testcase_19 AC 111 ms
97,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353

N = int(input())
*A, = map(int, input().split())
A.sort()

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

print(x)
0