結果

問題 No.2734 Addition and Multiplication in yukicoder (Hard)
ユーザー nikoro256nikoro256
提出日時 2024-04-19 23:11:35
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 296 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 518,536 KB
最終ジャッジ日時 2024-04-19 23:12:34
合計ジャッジ時間 51,295 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,552 KB
testcase_01 AC 35 ms
53,832 KB
testcase_02 AC 33 ms
52,608 KB
testcase_03 AC 33 ms
52,548 KB
testcase_04 AC 33 ms
52,248 KB
testcase_05 AC 34 ms
53,348 KB
testcase_06 AC 33 ms
52,204 KB
testcase_07 AC 35 ms
52,332 KB
testcase_08 AC 34 ms
52,680 KB
testcase_09 AC 34 ms
54,372 KB
testcase_10 AC 34 ms
52,352 KB
testcase_11 AC 36 ms
52,512 KB
testcase_12 AC 34 ms
52,004 KB
testcase_13 AC 34 ms
53,956 KB
testcase_14 AC 34 ms
52,796 KB
testcase_15 AC 32 ms
53,416 KB
testcase_16 AC 34 ms
53,776 KB
testcase_17 AC 2,153 ms
248,992 KB
testcase_18 AC 2,246 ms
257,996 KB
testcase_19 AC 41 ms
60,928 KB
testcase_20 AC 39 ms
59,520 KB
testcase_21 AC 40 ms
61,296 KB
testcase_22 AC 3,222 ms
494,308 KB
testcase_23 AC 3,129 ms
497,884 KB
testcase_24 AC 3,126 ms
498,368 KB
testcase_25 AC 3,181 ms
497,684 KB
testcase_26 AC 3,186 ms
499,664 KB
testcase_27 AC 2,913 ms
360,708 KB
testcase_28 MLE -
testcase_29 AC 3,026 ms
505,356 KB
testcase_30 AC 2,651 ms
392,140 KB
testcase_31 MLE -
testcase_32 AC 2,819 ms
431,992 KB
testcase_33 AC 1,750 ms
259,684 KB
testcase_34 AC 2,342 ms
386,996 KB
testcase_35 AC 1,198 ms
215,056 KB
testcase_36 AC 1,345 ms
200,168 KB
testcase_37 AC 2,039 ms
332,676 KB
testcase_38 AC 1,973 ms
278,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(str,input().split()))
A=[list(a) for a in A]
A=[(a*(-(-19//len(a))),len(a)) for a in A]
A.sort()
ans=[]
for a,c in A:
    a=a[:c]
    ans+=a
fa=0
left=1
p=998244353
for i in range(len(ans)-1,-1,-1):
    fa+=left*int(ans[i])
    left*=10
    left%=p
    fa%=p
print(fa%p)
0