1 solutions

  • 0
    @ 2025-11-5 15:38:51

    C++ :

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

    Pascal :

    var a,b,c:integer;
    begin
        read(a,b,c);
        if (a>b) and (a>c) then
        begin
            write(c);
        end
        else
        begin
            if b>c then
            begin
                write(b);
            end
            else
            begin
                write(c);
            end;
        end;
    end.
    
    
    • 1

    Information

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