/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 284.0 KiB
#2 Accepted 1ms 320.0 KiB
#3 Accepted 1ms 320.0 KiB
#4 Accepted 1ms 324.0 KiB
#5 Accepted 1ms 284.0 KiB
#6 Accepted 1ms 320.0 KiB

Code

#include <stdio.h>
#include<math.h>

int main() {
    int a,b,c,d,e,f,g,h,i,j;
    scanf("%d %d %d %d",&a,&b,&c,&d);
    e=fmin(a,b);
    f=fmin(c,d);
    g=fmin(e,f);
    h=fmax(a,b);
    i=fmax(c,d);
    j=fmax(h,i);
    
    printf("%d\n",g);
    printf("%d\n",j);
    

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1022 Minmax
Contest
Brain booster - 1
Language
C99 (GCC 13.2.0)
Submit At
2023-12-31 13:46:46
Judged At
2024-11-11 03:46:34
Judged By
Score
100
Total Time
1ms
Peak Memory
324.0 KiB