#include <iostream>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
cout<<a+b+c<<endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int M,N;
cin>>M>>N;
cout<<((M%N==0)?"YES":"NO")<<endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int N,i;cin>>N;
if(N<=3) {
cout<<"YES"<<endl;
}else {
for(i=2;i<N;i++) {
if(N%i==0) {
cout<<"NO"<<endl;
break;
}
}
if(i==N) {
cout<<"YES"<<endl;
}
}
return 0;
}
#include <iostream>
using namespace std;
int get(int i) {
if(i<2) {
return i;
} else {
return get(i-2)+get(i-1);
}
}
int main() {
int N;
cin>>N;
cout<<get(N)<<endl;
return 0;
}
网友评论