結果
問題 | No.2734 Addition and Multiplication in yukicoder (Hard) |
ユーザー | nikoro256 |
提出日時 | 2024-04-19 23:14:34 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 653 ms |
コンパイル使用メモリ | 82,524 KB |
実行使用メモリ | 480,824 KB |
最終ジャッジ日時 | 2024-04-19 23:16:02 |
合計ジャッジ時間 | 51,147 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 42 ms
52,308 KB |
testcase_01 | AC | 34 ms
52,864 KB |
testcase_02 | AC | 38 ms
52,664 KB |
testcase_03 | AC | 39 ms
52,608 KB |
testcase_04 | AC | 35 ms
52,584 KB |
testcase_05 | AC | 35 ms
52,680 KB |
testcase_06 | AC | 34 ms
52,688 KB |
testcase_07 | AC | 34 ms
52,276 KB |
testcase_08 | AC | 34 ms
52,616 KB |
testcase_09 | AC | 36 ms
52,800 KB |
testcase_10 | AC | 39 ms
53,272 KB |
testcase_11 | AC | 34 ms
52,464 KB |
testcase_12 | AC | 34 ms
52,244 KB |
testcase_13 | AC | 33 ms
52,312 KB |
testcase_14 | AC | 35 ms
52,368 KB |
testcase_15 | AC | 35 ms
53,292 KB |
testcase_16 | AC | 35 ms
52,244 KB |
testcase_17 | AC | 2,220 ms
252,032 KB |
testcase_18 | AC | 2,293 ms
255,200 KB |
testcase_19 | AC | 40 ms
60,800 KB |
testcase_20 | AC | 38 ms
60,172 KB |
testcase_21 | AC | 39 ms
60,900 KB |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 2,683 ms
335,120 KB |
testcase_28 | AC | 3,006 ms
458,220 KB |
testcase_29 | AC | 2,998 ms
421,168 KB |
testcase_30 | AC | 2,757 ms
396,452 KB |
testcase_31 | AC | 3,114 ms
477,720 KB |
testcase_32 | AC | 2,859 ms
353,876 KB |
testcase_33 | AC | 1,824 ms
257,728 KB |
testcase_34 | AC | 2,307 ms
369,156 KB |
testcase_35 | AC | 1,213 ms
193,284 KB |
testcase_36 | AC | 1,295 ms
198,548 KB |
testcase_37 | AC | 2,005 ms
300,092 KB |
testcase_38 | AC | 1,768 ms
259,076 KB |
ソースコード
N=int(input()) A=list(map(str,input().split())) A=[list(a) for a in A] A=[((a*(-(-19//len(a))))[:20],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)