/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 1ms 532.0 KiB
#3 Accepted 1ms 532.0 KiB
#4 Accepted 1ms 444.0 KiB
#5 Accepted 1ms 532.0 KiB
#6 Accepted 1ms 532.0 KiB

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