結果
問題 | No.2734 Addition and Multiplication in yukicoder (Hard) |
ユーザー | nikoro256 |
提出日時 | 2024-04-19 23:13:50 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 758 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 480,392 KB |
最終ジャッジ日時 | 2024-04-19 23:14:56 |
合計ジャッジ時間 | 50,774 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 36 ms
52,096 KB |
testcase_01 | AC | 36 ms
51,968 KB |
testcase_02 | AC | 37 ms
51,712 KB |
testcase_03 | AC | 35 ms
51,968 KB |
testcase_04 | AC | 37 ms
51,840 KB |
testcase_05 | AC | 38 ms
51,840 KB |
testcase_06 | AC | 36 ms
51,968 KB |
testcase_07 | AC | 36 ms
51,712 KB |
testcase_08 | AC | 36 ms
52,096 KB |
testcase_09 | AC | 35 ms
51,712 KB |
testcase_10 | AC | 36 ms
51,712 KB |
testcase_11 | AC | 39 ms
51,840 KB |
testcase_12 | AC | 38 ms
51,712 KB |
testcase_13 | AC | 36 ms
51,712 KB |
testcase_14 | AC | 37 ms
51,584 KB |
testcase_15 | AC | 45 ms
51,712 KB |
testcase_16 | AC | 37 ms
51,968 KB |
testcase_17 | AC | 2,180 ms
257,060 KB |
testcase_18 | AC | 2,226 ms
254,144 KB |
testcase_19 | AC | 40 ms
59,520 KB |
testcase_20 | AC | 39 ms
59,648 KB |
testcase_21 | AC | 40 ms
59,520 KB |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 2,845 ms
340,396 KB |
testcase_28 | AC | 3,077 ms
426,832 KB |
testcase_29 | AC | 2,984 ms
419,836 KB |
testcase_30 | AC | 2,649 ms
389,888 KB |
testcase_31 | AC | 2,981 ms
476,364 KB |
testcase_32 | AC | 2,866 ms
359,896 KB |
testcase_33 | AC | 1,717 ms
256,084 KB |
testcase_34 | AC | 2,349 ms
366,352 KB |
testcase_35 | AC | 1,133 ms
218,224 KB |
testcase_36 | AC | 1,257 ms
220,452 KB |
testcase_37 | AC | 1,911 ms
296,424 KB |
testcase_38 | AC | 1,782 ms
258,112 KB |
ソースコード
N=int(input()) A=list(map(str,input().split())) A=[list(a) for a in A] A=[((a*(-(-19//len(a))))[:19],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)