Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d;
cin>>a>>b>>c>>d;
int mn=min({a,b,c,d});
int mx=max({a,b,c,d});
cout<<mn<<endl<<mx;
}
Information
- Submit By
- Type
- Pretest
- Problem
- P1022 Minmax
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2024-07-18 06:05:48
- Judged At
- 2024-11-11 03:21:39
- Judged By
- Score
- 10
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB