1 solutions

  • 0
    @ 2025-3-3 16:33:13

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    
    int main(){
        int p,q;
        cin>>p>>q;
        //判断淘淘是否有资格进入中级班
    	if(p >= q){
    		cout<<"Yes"<<endl;
    	}else{
    		cout<<"No"<<endl; 
    	} 
    }
    

    Java :

    import java.util.Scanner;
    public class Main
    {   
    	public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int p = sc.nextInt();
            int q = sc.nextInt();
            if(p>=q) {
            	System.out.println("Yes");
            }else {
            	System.out.println("No");
            }
        
        }
    }
    

    Python :

    n = input().split()
    p = int(n[0])
    q = int(n[1])
    if p > q:
        print('Yes')
    else:
        print('No')
    
    
    • 1

    Information

    ID
    10499
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By