/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 284.0 KiB
#2 Wrong Answer 0ms 284.0 KiB
#3 Wrong Answer 0ms 320.0 KiB

Code

#include <stdio.h>

int main()
{   int n1,n2,n3,n4;
	scanf("%d %d %d %d",&n1,&n2,&n3,&n4);
	if(n1<n2 && n1<n3 && n1<n4){
		printf("%d\n",n1);}
	else if(n2<n1 && n2<n3 && n2<n4){
		printf("%d\n",n2);}
	else if(n3<n1 && n3<n2 && n3<n4){
		printf("%d\n",n3);}
	else{
		printf("%d",n4);
	}
	//for highest
	if(n1>n2 && n1>n3 && n1>n4){
		printf("%d\n",n1);}
	else if(n2>n1 && n2>n3 && n2>n4){
		printf("%d\n",n2);}
	else if(n3>n1 && n3>n2 && n3>n4){
		printf("%d\n",n3);}
	else{
		printf("%d\n",n4);}
   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:45:58
Judged At
2024-11-11 03:46:34
Judged By
Score
10
Total Time
1ms
Peak Memory
320.0 KiB