/ SeriousOJ /

Record Detail

Accepted


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

Code

#include<stdio.h>

int main(){

	int a[4], i;    for(i=0;i<4;i++){

    	scanf("%d", &a[i]);

    }

    int max=a[0], min=a[0];

    for(i=1;i<4;i++){

    	if(max<a[i]){

        	max=a[i];

        }

        if(min>a[i]){

        	min=a[i];

        }

    }

    printf("%d\n%d\n", min, max);

	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:29:50
Judged At
2024-11-11 03:46:40
Judged By
Score
100
Total Time
1ms
Peak Memory
332.0 KiB