1 条题解

  • 0
    @ 2023-6-11 12:20:40

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    int main(){
        int n;
        cin>>n;
        if(n > 1 & n < 100){
        	cout<<"yes"<<endl;
    	}
        return 0;
    }
    
    

    Java :

    import java.util.Scanner;
    
    public class Main {
    
    	public static void main(String[] args) {
    		// TODO Auto-generated method stub
    		Scanner sc = new Scanner(System.in);
    		int a = sc.nextInt();
    		if(a>1 && a<100){
    			System.out.println("yes");
    		}else{
    			System.out.println();
    		}
    		sc.close();
    	}
    
    }
    

    Python :

    a=int(input())
    if a>=1 and a<=100:
        print("yes")
    
    
    • 1

    信息

    ID
    2542
    时间
    1000ms
    内存
    16MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者