結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー sasa8uyauyasasa8uyauya
提出日時 2024-04-19 22:09:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 171 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 112,192 KB
最終ジャッジ日時 2024-04-19 22:10:03
合計ジャッジ時間 3,480 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,968 KB
testcase_01 AC 42 ms
51,584 KB
testcase_02 AC 171 ms
112,192 KB
testcase_03 AC 116 ms
104,576 KB
testcase_04 AC 119 ms
105,472 KB
testcase_05 AC 120 ms
107,264 KB
testcase_06 AC 149 ms
106,916 KB
testcase_07 AC 133 ms
100,308 KB
testcase_08 AC 129 ms
106,472 KB
testcase_09 AC 34 ms
51,456 KB
testcase_10 AC 35 ms
51,584 KB
testcase_11 AC 35 ms
51,584 KB
testcase_12 AC 135 ms
107,044 KB
testcase_13 AC 139 ms
107,296 KB
testcase_14 AC 137 ms
106,788 KB
testcase_15 AC 137 ms
106,792 KB
testcase_16 AC 135 ms
97,664 KB
testcase_17 AC 110 ms
98,304 KB
testcase_18 AC 125 ms
101,852 KB
testcase_19 AC 113 ms
97,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
M=998244353
a=list(map(int,input().split()))
a.sort()
x=0
for v in a:
  x=10*x+v
  x%=M
print(x)
0