Search
my_find(a,b)
a
b
my_replace(a,b,c)
c
len(s)
s[i]
i
s[i:j]
j
s[:j]
s[i:]
Ahoj
Cau
Konec
[ a_0, a_1, a_2, … , a_n ]
[1, 1, -2 ]
[0, 1, 0,-1 ]
[0,1,2]
[0,1,2,0]
[1,2,0]
printPoly
printPoly( [ 1, 1, 0, -2] )
1 + x - 2x^3
printPoly( [ -2, 0, 0, -2, 0, 0, 0] )
-2 - 2x^3
polyValue
polyValue([1,0,2], 4)
33
[0,2,-3]
[2,-6]
3 1 2 4 5
3 4 1 2 4 4 5
1 2 4
Vstup programu je:
1 2 3 3 3 3 3 3 3 3 5 6 3 3 3 1 3 3 3 3 3 3 3 3
8 2 4
3 3 3 3 3 3 3 3
10 1 2 3 10 3 2 1
1 0 3
1 2 3 4 1 2 3 4
4 0 0
1 2 3 4
x = list(map(int, input().split()))
3 1 2 4 1 2 4 5
3
7
3 1 2 4 1 2 4 1 5
1 2 4 1
Více příkladů:
3 3 3 3 3 3 3 3 3
4 12
3 3 3 3
1 1 1 6 2 2 2 6 1 1 1
1 6
6
1 2 5 -6 8 -3 2 1 1 2 2 5 -6 8 -3 2 3
4 9
2 5 -6 8 -3 2
2 5 -6 8