26 条题解
信息
- ID
- 2066
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 1
- 标签
- 递交数
- 668
- 已通过
- 395
- 上传者
#include<bits/stdc++.h> using namespace std; int main() { double x,y; cin>>x; if(x>=0&&x<5){ y=-x+2.5; } if(x>=5&&x<10){ y=2-1.5*(x-3)*(x-3); } if(x>=10&&x<20){ y=x/2-1.5; } printf("%.3lf",y); return 0; }
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a%20){ cout<<"even"; } if(a%21){ cout<<"odd"; } return 0; }
#include using namepace std; int main() { int n; cin>>n; if(n%2==1){ cout<<"odd"; }else{ cout<<"even"; } return 0; }
很好用,信我
👍 真的好用👍
#include using namespace std; int main(){ int n; cin>>n; if(n%2==1){ cout<<"odd"; }else{ cout<<"even"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n%2==0){ cout<<"even"; } if(n%2!=0){ cout<<"odd"; } return 0; }
6
#include using namespace std; int main(){ double a,b; cin>>a>>b; if(a==b){ cout<<"="; } if(a>b){ cout<<">"; } if(a<b){ cout<<"<"; } return 0; }
#include using namespace std; int main(){ int n; cin>>n; if(n%2==1){ cout<<"odd"; }else{ cout<<"even"; } return 0; }
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%20){ cout<<"even"<<endl; } if(n%21){ cout<<"odd"<<endl; } return 0; }
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a%2==0){ cout<<"even"; } if(a%2!=0){ cout<<"odd"; } return 0; }
#include using namespace std; int main (){ int n; cin>>n; if(n%2==1) cout<<"odd"; else cout<<"even"; return 0; }
#include <bits/stdc++.h> using namespace std; queues; int main(){ int a,b; cin>>a>>b; for(int i=1;i<=a;i++){ s.push(i);
}
while(!s.empty()){
for(int i=1;i<b;i++){
s.push(s.front());
s.pop();
}
cout<<s.front()<<" ";
s.pop();
}
return 0;
}
#include <bits/stdc++.h> using namespace std; queues; int main(){ int a,b; cin>>a>>b; for(int i=1;i<=a;i++){ s.push(i);
}
while(!s.empty()){
for(int i=1;i<=b;i++){
s.push(s.front());
s.pop();
}
cout<<s.front()<<" ";
s.pop();
}
}
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%20){ cout<<"even"<<endl; } if(n%21){ cout<<"odd"<<endl; } return 0; }
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%2!=0){ cout<<"odd"<<endl; } if(n%2==0){ cout<<"even"<<endl; } return 0; }
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
if(n%2==0) cout<<"even";
if(n%2!=0) cout<<"odd";
return 0;
}
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
if(n%2==0) cout<<"even";
if(n%2!=0) cout<<"odd";
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int a;
cin>>a;
if(a%2==1)
{
cout<<"odd";
}
if(a%2==0)
{
cout<<"even";
}
return 0;
}
#include using namespace std; int main(){ int n,x; cin>>n; x=n%2; if(x==0){ cout<<"even"; } else{ cout<<"odd"; } return 0; }
👍👍 👍👀️
#inlude<iosteam>
using namepace std;
int main()
{ int a;
cin>>a;
if(a%2==0){
cout<<"even";}
if(a%2!=0){
cout<<"odd";}
return 0;
}