6 solutions
- 1
Information
- ID
- 531
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- # Submissions
- 160
- Accepted
- 42
- Uploaded By
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int x;
cin >> x;
if(x >= 10 && x <= 99) cout << "1" << endl;
else cout << "0" << endl;
// cout << fixed << setprecision(3) << x * 100 << "%" << endl;
// return 0;
}
#include <iostream>
using namespace std;
int n;
int main(){
cin>>n;
if(n>=10&&n<100) cout<<1;
else cout<<0;
return 0;
}
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main(){
int a , b;
cin >> a;
if(a >= 10 && a <= 99){
cout << 1 << endl;
}else{
cout << 0 << endl;
}
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int r;
cin>>r;
if ((r >= 10) && (r<=99))
cout<<"1";
else
cout<<"0";
return 0;
}//难点:水
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int a;
int main(){
cin>>a;
if(a/100==0&&a/10>0) cout<<1<<"\n";
else cout<<0<<"\n";
return 0;
}
By signing up a ZXOJ universal account, you can submit code and join discussions in all online judging services provided by us.