1 条题解

  • 0
    @ 2025-9-10 8:58:57

    C++ :

    #include <iostream>
    #include <cstdio>
    using namespace std;
    int main()
    {
        int x,y;
        cin>>x>>y;
        if(x>y)
        {
            cout<<x<<">"<<y<<endl;
        }
        else if (x==y)
        {
            cout<<x<<"="<<y<<endl;
        }
        else
        {
            cout<<x<<"<"<<y<<endl;
        }
        return 0;
    }
    

    Pascal :

    var a,b:integer;
    begin
    readln(a,b);
    if a>b then writeln(a,'>',b);
    if a<b then writeln(a,'<',b);
    end.
    
    • 1

    信息

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