Runtime Error
Code
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a[3];
for(int i=0;i<=3;i++)
{
cin>>a[i];
}
int max=a[0];
int min=a[0];
for(int i =0;i<=3;i++)
{
if (a[i]>max)
{
max=a[i];
}
else if(a[i]<min)
{
min=a[i];
}
}
cout<<min<<endl<<max;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1022 Minmax
- Contest
- Brain booster - 1
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2023-12-31 14:48:10
- Judged At
- 2024-11-11 03:46:09
- Judged By
- Score
- 0
- Total Time
- 2ms
- Peak Memory
- 676.0 KiB