結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー lollipoplollipop
提出日時 2024-04-19 21:43:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 82,512 KB
実行使用メモリ 112,372 KB
最終ジャッジ日時 2024-04-19 21:43:21
合計ジャッジ時間 3,529 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
51,840 KB
testcase_01 AC 34 ms
52,096 KB
testcase_02 AC 132 ms
112,372 KB
testcase_03 AC 120 ms
104,624 KB
testcase_04 AC 120 ms
105,448 KB
testcase_05 AC 122 ms
107,376 KB
testcase_06 AC 135 ms
107,104 KB
testcase_07 AC 136 ms
100,496 KB
testcase_08 AC 132 ms
106,612 KB
testcase_09 AC 33 ms
51,812 KB
testcase_10 AC 34 ms
51,840 KB
testcase_11 AC 34 ms
52,224 KB
testcase_12 AC 134 ms
107,112 KB
testcase_13 AC 139 ms
107,480 KB
testcase_14 AC 140 ms
106,940 KB
testcase_15 AC 139 ms
106,992 KB
testcase_16 AC 108 ms
97,924 KB
testcase_17 AC 112 ms
98,044 KB
testcase_18 AC 129 ms
102,436 KB
testcase_19 AC 112 ms
97,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353
N = int(input())
A = sorted(map(int,input().split()))
x = 0
for i in range(N):
    x *= 10
    x += A[i]
    x %= MOD
print(x)
0