結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー flygonflygon
提出日時 2024-04-19 21:25:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 169 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 112,500 KB
最終ジャッジ日時 2024-04-19 21:25:34
合計ジャッジ時間 4,218 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
54,400 KB
testcase_01 AC 53 ms
54,016 KB
testcase_02 AC 169 ms
112,500 KB
testcase_03 AC 151 ms
106,752 KB
testcase_04 AC 150 ms
105,600 KB
testcase_05 AC 154 ms
99,856 KB
testcase_06 AC 167 ms
108,648 KB
testcase_07 AC 157 ms
103,596 KB
testcase_08 AC 154 ms
107,696 KB
testcase_09 AC 53 ms
54,144 KB
testcase_10 AC 52 ms
54,016 KB
testcase_11 AC 53 ms
54,016 KB
testcase_12 AC 161 ms
108,512 KB
testcase_13 AC 162 ms
109,416 KB
testcase_14 AC 163 ms
108,444 KB
testcase_15 AC 163 ms
108,508 KB
testcase_16 AC 133 ms
96,748 KB
testcase_17 AC 130 ms
97,040 KB
testcase_18 AC 149 ms
103,312 KB
testcase_19 AC 145 ms
96,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.setrecursionlimit(5*10**5)
input = sys.stdin.readline
from collections import defaultdict, deque, Counter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right
from math import gcd

n = int(input())
a = list(map(int,input().split()))

a.sort()
ans = 0
for i in range(n):
    ans = ans*10+a[i]
    ans %= 998244353

print(ans)
0