1 solutions

  • 0
    @ 2025-11-5 15:46:41

    C :

    #include <stdio.h>
    void main()
    {
    	int a,b;
    	scanf("%d%d",&a,&b);
    	if(a>b)
    		printf("Da\n");
    	else if(a==b)
    		printf("Deng\n");
    	else
    		printf("Xiao\n");
    }
    

    C++ :

    #include<iostream>
    #include<cstdlib>
    #include<cstdio>
    using namespace std;
    int main()
    {
    	int a,b;
    	cin>>a>>b;
    	if(a>b)
    	  cout<<"Da";
    	if(a==b)
    	  cout<<"Deng";
    	if(a<b)
    	  cout<<"Xiao";
    	return 0;
    }
    
    

    Pascal :

    var a,b:longint;
    begin
    readln(a,b);
    if a<b then write('Xiao'); 
    if a>b then write('Da');
    if a=b then write('Deng');
    end.
    
    
    • 1

    Information

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