結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー Nikkuniku029Nikkuniku029
提出日時 2024-04-20 06:34:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 146 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 112,188 KB
最終ジャッジ日時 2024-04-20 06:34:57
合計ジャッジ時間 3,828 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,968 KB
testcase_01 AC 40 ms
51,712 KB
testcase_02 AC 146 ms
112,188 KB
testcase_03 AC 123 ms
104,548 KB
testcase_04 AC 127 ms
105,508 KB
testcase_05 AC 120 ms
107,376 KB
testcase_06 AC 145 ms
106,992 KB
testcase_07 AC 129 ms
100,540 KB
testcase_08 AC 123 ms
106,844 KB
testcase_09 AC 34 ms
52,832 KB
testcase_10 AC 35 ms
52,388 KB
testcase_11 AC 35 ms
51,456 KB
testcase_12 AC 144 ms
107,164 KB
testcase_13 AC 146 ms
107,484 KB
testcase_14 AC 135 ms
106,860 KB
testcase_15 AC 130 ms
106,992 KB
testcase_16 AC 106 ms
97,776 KB
testcase_17 AC 121 ms
98,044 KB
testcase_18 AC 121 ms
102,156 KB
testcase_19 AC 107 ms
97,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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