結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー june19312june19312
提出日時 2024-04-19 21:30:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 82,264 KB
実行使用メモリ 112,380 KB
最終ジャッジ日時 2024-04-19 21:30:29
合計ジャッジ時間 3,175 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,084 KB
testcase_01 AC 33 ms
53,436 KB
testcase_02 AC 137 ms
112,380 KB
testcase_03 AC 111 ms
104,840 KB
testcase_04 AC 111 ms
106,268 KB
testcase_05 AC 117 ms
108,668 KB
testcase_06 AC 134 ms
107,600 KB
testcase_07 AC 129 ms
100,540 KB
testcase_08 AC 123 ms
106,656 KB
testcase_09 AC 34 ms
52,552 KB
testcase_10 AC 34 ms
52,488 KB
testcase_11 AC 35 ms
52,760 KB
testcase_12 AC 133 ms
107,080 KB
testcase_13 AC 132 ms
107,228 KB
testcase_14 AC 131 ms
106,972 KB
testcase_15 AC 132 ms
107,008 KB
testcase_16 AC 103 ms
97,876 KB
testcase_17 AC 104 ms
98,172 KB
testcase_18 AC 120 ms
102,268 KB
testcase_19 AC 107 ms
98,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))
mod = 998244353
A.sort()
ans = 0
for i,v in enumerate(A):
    if i == 0:
        ans = v
        ans %= mod
    else:
        ans *= 10
        ans += v
        ans %= mod
print(ans%mod)
0