Commit d32b83de by BellCodeEditor

auto save

parent 98f24605
//#include<iostream>
//using namespace std;
//int main(){
// char x,y;
// x='m';
// int n;
// n=x<y;
// cout<<n<<endl;
// n=x==y-1;
// cout<<n<<endl;
// return 0;
//}
#include<iostream>
using namespace std;
int main(){
int x;bool p;
cin >>x;
p=(x&400==0)||(x%4==0)&&(x&100!=0);
cout<<p<<endl;
return 0;
}
//#include<iostream>
//using namespace std;
//int main(){
// int n,m;
// cin>>n;
// if(n<=5){
// m=n*300;
// cout<<m;
// return 0;
// } else{
// m=n*280;
// cout<<m;
// }
// return 0;
//}
//#include<iostream>
//using namespace std;
//int main(){
// int x,y,z;
// cin>>x>>y>>z;
// if(x<=y){
// if(y<=z){
// cout<<"yes";
// }
// else{
// cout<<"no";
// }
//
// }
// else{
// cout<<"no";
// }
// return 0;
//}
File added
#include<bits/stdc++.h>
using namespace std;
int main() {
int n,m;
cin>>n>>m;
printf("%.2lf",n*n*3.14-m*m);
return 0;
}
File added
#include<stdio.h>
#include<iostream>
#include<math.h>
using namespace std;
int main(){
int n,p,c,s;
cin>>n>>p;
for(int i=2;i<=n;i++){
cin>>c;
while(p%c>0){
s=p%c;
p=c;
c=s;
}
p=c;
}
cout<<c;
return 0;
}
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment