竞赛
考级
新手必看,每行都有思路和讲解。虽然有点长······ 本代码只提供思路,要想刷“时间刺客”“空间掌握者”“时空双修”, 可以用其他题解。 对你有帮助的话,请点个赞吧!
cpp #include <bits/stdc++.h> using namespace std;iii int main() { long long i; cin>>i; if(i>=10){cout<<"yes";} else{cout<<"no";} }iii
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a>=10){ cout<<"yes"<<endl; } else{ cout<<"no"<<endl; } }
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n>=10){ cout<<"yes"; }else if(n<10){ cout<<"no"; } }
#include<bits/stdc++.h>//submitRecord// using namespace std; //const int N=1e7+10; int main(){ //freopen("","r",stdin); //freopen("","w",stdout); ios::sync_with_stdio(); cin.tie(nullptr); cout.tie(nullptr); int a; cin>>a; if(a>=10) cout<<"yes"; else cout<<"no"; //fclose(stdin); //fclose(stdout); return 0; }
n = int(input()) if n >= 10: print("yes") else: print("no")
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if(n >= 10) { cout << "yes" << endl; } else { cout << "no" << endl; } }
#include <iostream> using namespace std; int main(){ int n; cin>>n; if(n>=10){ cout<<"yes"; }else{ cout<<"no"; } return 0; }
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >>n; if(n>=10){ cout <<"yes"; }else{ cout <<"no"; } return 0; }
共30条
提交答案之后,这里将显示提交结果~