結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー moharan627moharan627
提出日時 2024-04-19 21:30:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 675 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 113,132 KB
最終ジャッジ日時 2024-04-19 21:30:45
合計ジャッジ時間 3,548 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
54,016 KB
testcase_01 AC 43 ms
54,016 KB
testcase_02 AC 139 ms
113,132 KB
testcase_03 AC 122 ms
104,704 KB
testcase_04 AC 128 ms
107,232 KB
testcase_05 AC 136 ms
99,588 KB
testcase_06 AC 143 ms
108,408 KB
testcase_07 AC 138 ms
104,040 KB
testcase_08 AC 132 ms
107,448 KB
testcase_09 AC 43 ms
53,888 KB
testcase_10 AC 42 ms
53,632 KB
testcase_11 AC 44 ms
53,236 KB
testcase_12 AC 142 ms
108,220 KB
testcase_13 AC 144 ms
108,792 KB
testcase_14 AC 168 ms
108,676 KB
testcase_15 AC 142 ms
108,412 KB
testcase_16 AC 115 ms
93,480 KB
testcase_17 AC 116 ms
96,372 KB
testcase_18 AC 130 ms
103,244 KB
testcase_19 AC 117 ms
93,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#sys.setrecursionlimit(10 ** 6)
#sys.set_int_max_str_digits(0)
INF = float('inf')
MOD = 10**9 + 7
MOD2 = 998244353
from collections import defaultdict
def ceil(A,B):
    return -(-A//B)
def ceil(A,B):
    return -(-A//B)
def solve():
    def II(): return int(sys.stdin.readline())
    def LI(): return list(map(int, sys.stdin.readline().split()))
    def LC(): return list(sys.stdin.readline().rstrip())
    def IC(): return [int(c) for c in sys.stdin.readline().rstrip()]
    def MI(): return map(int, sys.stdin.readline().split())
    N = II()
    A = LI()
    A.sort()
    X = 0
    for a in A:
        X = 10*X+a
        X%=MOD2
    print(X)
    return
solve()
0