結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー hato336hato336
提出日時 2024-04-19 21:23:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 249 ms / 2,000 ms
コード長 440 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 82,320 KB
実行使用メモリ 124,624 KB
最終ジャッジ日時 2024-04-19 21:23:25
合計ジャッジ時間 5,276 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
85,856 KB
testcase_01 AC 113 ms
85,764 KB
testcase_02 AC 210 ms
122,988 KB
testcase_03 AC 199 ms
121,788 KB
testcase_04 AC 195 ms
121,808 KB
testcase_05 AC 199 ms
122,504 KB
testcase_06 AC 249 ms
122,996 KB
testcase_07 AC 208 ms
124,624 KB
testcase_08 AC 215 ms
122,936 KB
testcase_09 AC 114 ms
85,652 KB
testcase_10 AC 113 ms
85,860 KB
testcase_11 AC 113 ms
85,780 KB
testcase_12 AC 215 ms
123,008 KB
testcase_13 AC 218 ms
123,248 KB
testcase_14 AC 237 ms
122,964 KB
testcase_15 AC 216 ms
122,872 KB
testcase_16 AC 188 ms
115,712 KB
testcase_17 AC 192 ms
116,464 KB
testcase_18 AC 196 ms
123,432 KB
testcase_19 AC 178 ms
116,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
#n = int(input())
#alist = list(map(int,input().split()))
#alist = []
#s = input()
n = int(input())
alist = list(map(int,input().split()))
alist.sort()
mod = 998244353
ans = 0
for i in range(n):
    ans *= 10
    ans += alist[i]
    ans %= mod
print(ans)
0