A masala uchun yechim :


#include <iostream>
#include <string>
using namespace std;
int main(){
	string s="ALB";
	int a;
	cin >>a;
	a %= 3;
	for (int i = 0 ; i<a ; ++i){
		swap(s[2],s[1]);
		swap(s[1],s[0]);
	}
	cout << s;
}

B masala uchun yechim:

a=input()
s='"'
for i in a:
  if i.isalnum():
    s+=i
  elif i=='(':
    s+='"+("'
  else:
    s+='")[::-1]+"'
s+='"'
exec(f'print({s})')

C masala uchun yechim:

import math
a,b=map(float, input().split())
c=math.sqrt(a**2+b**2)
yuza=0.5*a*b
h=(2*yuza)/c
print(f"{h:.2f}")

D masala uchun yechim:

a = int(input())
print(f"{a / 6.28:.6f}")

E masala uchun yechim:

def s(e):
    a, b = e.split('=')
    a = a.replace(' ', '')
    b = b.strip()

    if 'x' in a:
        c = 0
        n = ''
        s = 1

        for x in a:
            if x.isdigit():
                n += x
            elif x == '+' or x == '-':
                if n:
                    c += s * int(n)
                    n = ''
                s = 1 if x == '+' else -1
        
        if n:
            c += s * int(n)

        x = eval(b) - c
        return x
    elif 'x' in b:
        c = 0
        n = ''
        s = 1

        for x in b:
            if x.isdigit():
                n += x
            elif x == '+' or x == '-':
                if n:
                    c += s * int(n)
                    n = ''
                s = 1 if x == '+' else -1
        
        if n:
            c += s * int(n)

        x = c + eval(a.strip())
        return x

j = input()
print(s(j))

F masala uchun yechim:

import math

def k(a, b, c):
    d = b**2 - 4*a*c
    if d > 0:
        x1 = (-b + math.sqrt(d)) / (2 * a)
        x2 = (-b - math.sqrt(d)) / (2 * a)
        return x1, x2
    elif d == 0:
        x1 = -b / (2 * a)
        return x1, None
    else:
        return None, None

a, b, c = map(float, input().split())
x1, x2 = k(a, b, c)

if x1 is not None:
    if x1%1==0:
        print(int(x1), end=' ')
    else:
        print(x1, end=' ')
if x2 is not None:
    if x2%1==0:
        print(int(x2), end=' ')
    else:
        print(x2, end=' ')