Tenglamalar sistemasi masalasi:
python kod:
a=int(input())
b=int(input())
c=(b-2*a)//2
d=a-c
print(d)
print(c)
Uchburchak yasash masalasi:
python kod:
a=int(input())
b=int(input())
c=int(input())
if a+b>c and a+c>b and c+b>a:
print('YES')
else:
print('NO')
Matematika masalasi:
python kod:
a=float(input())
c=((4*(a-3))**6)-((7*(a-3))**3)+2
print(int(c))
Math lessons♾ masalasi:
python kod:
try:
inp_file = open('txt.txt', 'r')
index = int(inp_file.readline())
except: index = 1
inp = input()
ans = ['( 5 + 6 ) * 4', '( ( 4 + 2 ) * 3 - 1 ) / 5', "Iloji yo'q", '8 * 9 + 0', "( 12 + 9 ) * 10 + 0", "Iloji yo'q", '( 1 + 1 + 1 ) * ( 1 + 1 )', '( 2 + 2 ) * 2 * 2 * 2', '12 + 10 / 2 ', '( 10 + 1 ) * 100 + 0']
print(ans[index-1])
f = open('txt.txt', 'w')
f.write(str(index+1))
#kod uchun Najmiddinga raxmat