язык программирования питон
1)
import math;
r = int(input());
print(2 * math.pi * r);
print(math.pi * r ** 2);
2)
1.
import math;
a = float(input());
b = float(input());
print((math.sqrt(a) + math.sqrt(b)) / (math.sqrt(a ** 2 + b ** 2)));
2.
import math;
z = float(input());
y = float(input());
print((z * y) / (math.sqrt(z ** 3 + y ** 3)));
3.
import math;
x = float(input());
print(math.abs(x ** 2 - 2.4 * x + ((x + 1) / (x ** 2 + 2;
3) понял что надо среднее арифмитическое сделать из трех чисел, если что-то не так понял напиши.
a = float(input());
b = float(input());
c = float(input());
print((a + b + c) / 3);
4) не понял условие, перевод не понятный. Напиши если сможешь качественно перевести.
вариант Б тоже-самое что и 4 задание.
#include <iostream>
#include <stack>
using namespace std;
void solve(string &s){
stack<char> cur;
for(int i = 0; i < s.size(); i++){
if(!cur.empty() && ((cur.top() == '(' && s[i] == ')') || (cur.top() == '{' && s[i] == '}') || (cur.top() == '[' && s[i] == ']')))
cur.pop();
else cur.push(s[i]);
}
if(cur.empty()) cout << "YES";
else cout << "NO";
}
signed main() {
string str;
cin >> str;
solve(str);
}