Accepted
Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d;
cin >> a >> b >> c >> d;
int m = max({a,b,c,d});
int n = min({a,b,c,d});
cout << n << endl;
cout << m << endl;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1022 Minmax
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-01-02 18:25:15
- Judged At
- 2025-01-02 18:25:15
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB