2 solutions

  • 1
    @ 2024-7-20 20:56:25

    有必要这么麻烦?

    #include<bits/stdc++.h>
    using namespace std;
    int b;
    int main(){
    	cin>>b;
    	cout<<(b/10>=1&&b/10<10);
    	return 0;
    }
    
    • 0
      @ 2024-7-15 20:48:04
      #include <bits/stdc++.h>
      using namespace std;
      int main(){
      	int a;
      	cin>>a;
      	if(a>=10&&a<=99) cout<<"1";
      	else cout<<"0";
      	return 0;
      }
      
      • 1

      Information

      ID
      6884
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      1
      Tags
      # Submissions
      10
      Accepted
      6
      Uploaded By