/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 324.0 KiB
#2 Wrong Answer 1ms 324.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;
int main()
{ 
   


    int a[3];
    for(int i=0;i<3;i++)
    {
        cin>>a[i];
    }
    int mx=a[0];
    int mn=a[0];
    for(int i =0;i<3;i++)
    {
        if (a[i]>mx)
        {
            mx=a[i];
        }
       
        else if(a[i]<mn)
        {
            mn=a[i];
        }
       


    }
    cout<<mn<<endl<<mx;
}

Information

Submit By
Type
Submission
Problem
P1022 Minmax
Contest
Brain booster - 1
Language
C++17 (G++ 13.2.0)
Submit At
2023-12-31 15:06:12
Judged At
2024-11-11 03:45:59
Judged By
Score
0
Total Time
1ms
Peak Memory
324.0 KiB