/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 544.0 KiB
#2 Accepted 1ms 768.0 KiB
#3 Accepted 1ms 532.0 KiB
#4 Accepted 1ms 536.0 KiB
#5 Accepted 1ms 592.0 KiB
#6 Accepted 1ms 532.0 KiB

Code


#include <iostream>
using namespace std;
int main() {
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    int smallest = min(min(a, b), min(c, d));
    int largest = max(max(a, b), max(c, d));
    cout << smallest << endl;
    cout << largest << endl;
    return 0;
}

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:15:06
Judged At
2024-11-11 03:45:51
Judged By
Score
100
Total Time
1ms
Peak Memory
768.0 KiB