結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー YhuanDebesteYhuanDebeste
提出日時 2024-04-19 22:14:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 467 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 113,052 KB
最終ジャッジ日時 2024-04-19 22:14:27
合計ジャッジ時間 3,781 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
54,400 KB
testcase_01 AC 44 ms
54,144 KB
testcase_02 AC 149 ms
113,052 KB
testcase_03 AC 138 ms
106,496 KB
testcase_04 AC 137 ms
106,624 KB
testcase_05 AC 147 ms
99,520 KB
testcase_06 AC 158 ms
108,812 KB
testcase_07 AC 152 ms
103,652 KB
testcase_08 AC 142 ms
107,404 KB
testcase_09 AC 44 ms
54,144 KB
testcase_10 AC 44 ms
54,656 KB
testcase_11 AC 45 ms
54,272 KB
testcase_12 AC 149 ms
108,852 KB
testcase_13 AC 149 ms
108,940 KB
testcase_14 AC 152 ms
108,808 KB
testcase_15 AC 144 ms
108,504 KB
testcase_16 AC 122 ms
95,948 KB
testcase_17 AC 122 ms
96,896 KB
testcase_18 AC 145 ms
103,432 KB
testcase_19 AC 135 ms
96,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from functools import reduce
n = int(input())
arr = list(map(int, input().split()))
arr.sort()
print(reduce(lambda a, b:((10*a) + b) % 998244353, arr) % 998244353)
0