結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー detteiuudetteiuu
提出日時 2024-04-19 21:24:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 82,268 KB
実行使用メモリ 111,932 KB
最終ジャッジ日時 2024-04-19 21:24:35
合計ジャッジ時間 3,356 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
51,712 KB
testcase_01 AC 34 ms
51,840 KB
testcase_02 AC 134 ms
111,932 KB
testcase_03 AC 114 ms
105,600 KB
testcase_04 AC 116 ms
106,624 KB
testcase_05 AC 115 ms
108,416 KB
testcase_06 AC 129 ms
108,580 KB
testcase_07 AC 130 ms
101,700 KB
testcase_08 AC 123 ms
108,008 KB
testcase_09 AC 34 ms
51,456 KB
testcase_10 AC 34 ms
52,096 KB
testcase_11 AC 35 ms
51,712 KB
testcase_12 AC 133 ms
108,320 KB
testcase_13 AC 133 ms
108,960 KB
testcase_14 AC 134 ms
108,320 KB
testcase_15 AC 132 ms
107,940 KB
testcase_16 AC 106 ms
97,920 KB
testcase_17 AC 106 ms
98,048 KB
testcase_18 AC 121 ms
103,368 KB
testcase_19 AC 109 ms
97,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = sorted(list(map(int, input().split())))

MOD = 998244353
X = 0
for i in range(N):
    X = 10*X+A[i]
    X %= MOD

print(X)
0