midterm variant 1 1 #include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >>c; if ((a>b+c) && (b>a+c) && (c>a+b)){ cout << "Yes"; } else { cout << "No"; } return 0; } 2 #include <iostream> using namespace std; int main(){ char arr[1000]; int n,a=0; cin >> n; for (int i=0;i<n;i++) { cin >> arr[i]; } for (int i=0;i<n;i++) { if (arr[i] == 'A') a++; } cout << a<< endl; return 0; }