/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 352.0 KiB
#2 Accepted 2ms 436.0 KiB
#3 Accepted 1ms 516.0 KiB
#4 Accepted 1ms 344.0 KiB
#5 Accepted 1ms 536.0 KiB
#6 Accepted 1ms 532.0 KiB

Code

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define ll long long int




int main(){

    int a, b, c, d;
    cin>>a>>b>>c>>d;

    int arr[4];
    arr[0] = a;
    arr[1] = b;
    arr[2] = c;
    arr[3] = d;

    sort(arr, arr+4);

    cout<<arr[0]<<endl;
    cout<<arr[3]<<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 14:56:10
Judged At
2024-10-03 14:05:55
Judged By
Score
100
Total Time
2ms
Peak Memory
536.0 KiB