結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー budoubudou
提出日時 2024-04-20 07:34:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 184 ms / 2,000 ms
コード長 444 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 122,496 KB
最終ジャッジ日時 2024-04-20 07:35:05
合計ジャッジ時間 4,721 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
66,560 KB
testcase_01 AC 68 ms
66,660 KB
testcase_02 AC 165 ms
116,864 KB
testcase_03 AC 150 ms
106,240 KB
testcase_04 AC 154 ms
106,576 KB
testcase_05 AC 161 ms
107,836 KB
testcase_06 AC 184 ms
117,416 KB
testcase_07 AC 171 ms
109,092 KB
testcase_08 AC 158 ms
122,496 KB
testcase_09 AC 62 ms
66,560 KB
testcase_10 AC 64 ms
67,072 KB
testcase_11 AC 65 ms
66,560 KB
testcase_12 AC 163 ms
117,400 KB
testcase_13 AC 168 ms
118,096 KB
testcase_14 AC 173 ms
117,504 KB
testcase_15 AC 160 ms
117,480 KB
testcase_16 AC 131 ms
104,576 KB
testcase_17 AC 132 ms
105,072 KB
testcase_18 AC 148 ms
112,580 KB
testcase_19 AC 135 ms
104,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import typing
import sys
from collections import defaultdict
input = lambda: sys.stdin.readline().strip()
inf = 10**18
mod = 998244353
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
# sys.setrecursionlimit(10**6)

def solve():
  N = int(input())
  A = list(map(int, input().split()))
  A.sort()
  ans = 0
  for x in A:
    ans = ans*10 + x
    ans %= mod
  print(ans)
def main():
  t = 1
  for _ in range(t):
    solve()
main()
0