A masala uchun yechim:
#include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
if (a >= 0 && a <= 1600) {
cout << "Pupil" << endl;
} else if (a >= 1600 && a <= 1699) {
cout << "Specialist" << endl;
} else if (a >= 1700 && a <= 1799) {
cout << "Expert" << endl;
} else if (a >= 1800 && a <= 1999) {
cout << "Candidate Master" << endl;
} else if (a >= 2000 && a <= 2199) {
cout << "Master" << endl;
} else if (a >= 2200 && a <= 2399) {
cout << "International Master" << endl;
} else if (a >= 2400 && a <= 2699) {
cout << "Grandmaster" << endl;
} else if (a >= 2700 && a <= 2999) {
cout << "International GrandMaster" << endl;
} else if (a >= 3000) {
cout << "Legendary Grandmaster" << endl;}
return 0;
}
B masala uchun yechim:
#include<iostream>
using namespace std;
int main(){
int x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2;
if(x1==x2 || y1==y2 ) cout<<"YES";
else cout<<"NO";
}
c masala uchun yechim:
#include<iostream>
using namespace std;
int main(){
string r,y,g;
cin>>r>>y>>g;
if(r=="black" && y=="black" && g=="green"){
cout<<"black"<<endl<<"black"<<endl<<"GREEN";
}
else if(r=="black" && y=="black" && g=="GREEN"){
cout<<"black"<<endl<<"yellow"<<endl<<"black";
}
else if(r=="black" && y=="yellow" && g=="black"){
cout<<"red"<<endl<<"black"<<endl<<"black";
}
else if(r=="red" && y=="black" && g=="black"){
cout<<"red"<<endl<<"yellow"<<endl<<"black";
}
else if(r=="red" && y=="yellow" && g=="black"){
cout<<"black"<<endl<<"black"<<endl<<"green";
}
else if (r=="black" && y=="YELLOW" && g=="black"){
cout<<"black"<<endl<<"YELLOW"<<endl<<"black";
}
else {
cout<<"error";
}
}
D masala uchun yechim:
#include<iostream>
using namespace std;
int main(){
int cnt=0;
int n;
cin>>n;
for(int d=0;d<10;d++){
if((1*1000+2*100+d*10+3)%n==0){
cnt++;
}
}
cout<<cnt;
}
E masala uchun yechim:
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
if(n>25){
cout<<"25";
}
else{
cout<<n;
}
}
F masala uchun yechim:
#include<iostream>
using namespace std;
int main(){
int c5,c6,c7,c8,c9,c10,c11;
cin>>c5;
cin>>c6;
cin>>c7;
cin>>c8;
cin>>c9;
cin>>c10;
cin>>c11;
if(c5+c6+c7+c8+c9>c10+c11){
cout<<"5-9";
}
else if(c5+c6+c7+c8+c9==c10+c11){
cout<<"=";
}
else{
cout<<"10-11";
}
}