結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー 👑 rin204rin204
提出日時 2024-04-20 01:04:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 82,492 KB
実行使用メモリ 111,880 KB
最終ジャッジ日時 2024-04-20 01:04:54
合計ジャッジ時間 3,493 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,300 KB
testcase_01 AC 34 ms
52,480 KB
testcase_02 AC 123 ms
111,880 KB
testcase_03 AC 110 ms
105,628 KB
testcase_04 AC 111 ms
105,204 KB
testcase_05 AC 114 ms
106,920 KB
testcase_06 AC 136 ms
106,736 KB
testcase_07 AC 124 ms
100,564 KB
testcase_08 AC 121 ms
106,296 KB
testcase_09 AC 34 ms
53,224 KB
testcase_10 AC 34 ms
52,512 KB
testcase_11 AC 34 ms
53,052 KB
testcase_12 AC 134 ms
106,724 KB
testcase_13 AC 126 ms
107,252 KB
testcase_14 AC 126 ms
106,604 KB
testcase_15 AC 128 ms
106,840 KB
testcase_16 AC 102 ms
97,752 KB
testcase_17 AC 104 ms
98,220 KB
testcase_18 AC 116 ms
101,908 KB
testcase_19 AC 104 ms
97,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353

n = int(input())
A = list(map(int, input().split()))
A.sort()
ans = 0
for a in A:
    ans = (10 * ans + a) % MOD
print(ans)
0