c029: D. 多項式 (Polynomial)
Tags :
Accepted rate : 5人/6人 ( 83% ) [非即時]
評分方式:
Tolerant

最近更新 : 2020-05-25 19:49

Content

Input
Output
Sample Input
Sample Input 1:
3 3
2x^3 + x^2 + 4x + 8
1
2
3

Sample Input 2:
3 3
-x^3 + x + 1
-1000000000
-2
0

Sample Input 3:
0 2
-87
201909
101010

Sample Input 4:
1 3
4x - -3
3
5
7
Sample Output
Sample Output 1:
15
36
83

Sample Output 2:
999999672
7
1

Sample Output 3:
999999920
999999920

Sample Output 4:
15
23
31
測資資訊:
記憶體限制: 256 MB
公開 測資點#0 (2%): 1.0s , <1M
公開 測資點#1 (1%): 1.0s , <1M
公開 測資點#2 (1%): 1.0s , <1M
公開 測資點#3 (1%): 1.0s , <1M
公開 測資點#4 (1%): 1.0s , <1M
公開 測資點#5 (3%): 1.0s , <1M
公開 測資點#6 (1%): 1.0s , <1M
公開 測資點#7 (1%): 1.0s , <1M
公開 測資點#8 (1%): 1.0s , <1M
公開 測資點#9 (1%): 1.0s , <1M
公開 測資點#10 (11%): 1.0s , <1K
公開 測資點#11 (1%): 1.0s , <1K
公開 測資點#12 (1%): 1.0s , <1K
公開 測資點#13 (9%): 1.0s , <1M
公開 測資點#14 (1%): 1.0s , <1M
公開 測資點#15 (1%): 1.0s , <1M
公開 測資點#16 (9%): 1.0s , <1M
公開 測資點#17 (1%): 1.0s , <1M
公開 測資點#18 (1%): 1.0s , <1M
公開 測資點#19 (1%): 1.0s , <1M
公開 測資點#20 (20%): 1.0s , <1M
公開 測資點#21 (1%): 1.0s , <1M
公開 測資點#22 (1%): 1.0s , <1M
公開 測資點#23 (1%): 1.0s , <1M
公開 測資點#24 (21%): 1.0s , <1M
公開 測資點#25 (1%): 1.0s , <1M
公開 測資點#26 (1%): 1.0s , <1M
公開 測資點#27 (1%): 1.0s , <1M
公開 測資點#28 (1%): 1.0s , <1M
公開 測資點#29 (1%): 1.0s , <1M
公開 測資點#30 (1%): 1.0s , <1M
公開 測資點#31 (1%): 1.0s , <1M
Hint :
Tags:
出處:
-板橋高中排名賽-108學年度板橋高中第一次排名賽 [管理者:
SorahISA (SorahISA)
]


ID User Problem Subject Hit Post Date
19
dc8921 (God bless)
c029
Horner's Rule
198 2023-03-17 15:01