結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー ShirotsumeShirotsume
提出日時 2024-04-19 22:34:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 175 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 958 ms
コンパイル使用メモリ 81,800 KB
実行使用メモリ 113,668 KB
最終ジャッジ日時 2024-04-19 22:34:38
合計ジャッジ時間 3,919 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
55,296 KB
testcase_01 AC 47 ms
54,784 KB
testcase_02 AC 153 ms
113,668 KB
testcase_03 AC 144 ms
108,116 KB
testcase_04 AC 139 ms
107,124 KB
testcase_05 AC 148 ms
100,960 KB
testcase_06 AC 154 ms
109,332 KB
testcase_07 AC 175 ms
104,912 KB
testcase_08 AC 158 ms
108,772 KB
testcase_09 AC 48 ms
54,912 KB
testcase_10 AC 48 ms
54,988 KB
testcase_11 AC 48 ms
54,796 KB
testcase_12 AC 161 ms
109,352 KB
testcase_13 AC 156 ms
109,992 KB
testcase_14 AC 155 ms
108,984 KB
testcase_15 AC 156 ms
109,220 KB
testcase_16 AC 129 ms
97,200 KB
testcase_17 AC 139 ms
98,144 KB
testcase_18 AC 144 ms
104,428 KB
testcase_19 AC 131 ms
97,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, time, random
from collections import deque, Counter, defaultdict
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 61 - 1
mod = 998244353

n = ii()
a = li()
a.sort()

ans = 0

for i in range(n):
    ans = 10 * ans + a[i]
    ans %= mod
print(ans)
0