/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 540.0 KiB
#2 Accepted 1ms 540.0 KiB
#3 Accepted 1ms 796.0 KiB
#4 Accepted 1ms 540.0 KiB
#5 Accepted 1ms 540.0 KiB
#6 Accepted 1ms 540.0 KiB

Code

#include <iostream>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;

#define speedBoost ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ll long long int

void solve(){
  ll a,b,c,d;
  cin>>a>>b>>c>>d;
  cout<<min(min(min(a,b),c),d)<<endl;
	cout<<max(max(max(a,b),c),d)<<endl;
}

int main(){
  speedBoost;
  //int tc;
  //cin>>tc;
  //while(tc--){
    solve(); 
 // }
}

Information

Submit By
Type
Submission
Problem
P1022 Minmax
Language
C++17 (G++ 13.2.0)
Submit At
2025-04-23 11:35:14
Judged At
2025-04-23 11:35:14
Judged By
Score
100
Total Time
1ms
Peak Memory
796.0 KiB