結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2024-04-19 21:33:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 112,452 KB
最終ジャッジ日時 2024-04-19 21:33:19
合計ジャッジ時間 3,650 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
51,712 KB
testcase_01 AC 39 ms
51,968 KB
testcase_02 AC 139 ms
112,452 KB
testcase_03 AC 147 ms
104,448 KB
testcase_04 AC 124 ms
105,216 KB
testcase_05 AC 127 ms
107,264 KB
testcase_06 AC 142 ms
107,108 KB
testcase_07 AC 140 ms
100,604 KB
testcase_08 AC 134 ms
106,604 KB
testcase_09 AC 39 ms
51,712 KB
testcase_10 AC 38 ms
51,968 KB
testcase_11 AC 38 ms
52,224 KB
testcase_12 AC 142 ms
107,120 KB
testcase_13 AC 141 ms
107,496 KB
testcase_14 AC 141 ms
106,796 KB
testcase_15 AC 142 ms
106,732 KB
testcase_16 AC 115 ms
97,836 KB
testcase_17 AC 115 ms
98,048 KB
testcase_18 AC 130 ms
101,936 KB
testcase_19 AC 115 ms
97,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

A.sort()

for a in A:
    x = x * 10 + a
    x %= 998244353

print (x)
0