結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー pitPpitP
提出日時 2024-04-19 21:25:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 169 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 111,804 KB
最終ジャッジ日時 2024-04-19 21:25:38
合計ジャッジ時間 4,015 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
51,200 KB
testcase_01 AC 48 ms
51,456 KB
testcase_02 AC 160 ms
111,804 KB
testcase_03 AC 141 ms
104,064 KB
testcase_04 AC 134 ms
104,576 KB
testcase_05 AC 144 ms
106,880 KB
testcase_06 AC 164 ms
106,656 KB
testcase_07 AC 158 ms
100,224 KB
testcase_08 AC 154 ms
106,344 KB
testcase_09 AC 46 ms
51,584 KB
testcase_10 AC 46 ms
51,456 KB
testcase_11 AC 45 ms
51,456 KB
testcase_12 AC 164 ms
106,648 KB
testcase_13 AC 166 ms
107,164 KB
testcase_14 AC 168 ms
106,264 KB
testcase_15 AC 169 ms
106,656 KB
testcase_16 AC 135 ms
97,664 KB
testcase_17 AC 130 ms
97,664 KB
testcase_18 AC 153 ms
101,592 KB
testcase_19 AC 135 ms
97,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353
N = int(input())
A = list(map(int, input().split()))
A.sort()
x = 0
for i in range(N):
    x = (10 * x + A[i]) % MOD
print(x)
0