/ SeriousOJ /

Record Detail

Wrong Answer


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

Code

#include<stdio.h>
int main()
{

int a, b, c, d;

scanf("%d %d %d %d", &a, &b, &c, &d);
if (a < b && a < c && a < d)
    printf("%d\n", a);
if (b < a && b < c && b < d)
    printf("%d\n", b);
if (c < a && c < b && c < d)
    printf("%d\n", c);
if (d < a && d < a && d < c)
    printf("%d\n", d);

if (a > b && a > c && a > d)
    printf("%d\n", a);
if (b > a && b > c && b > d)
    printf("%d\n", b);
if (c > a && c > b && c > d)
    printf("%d\n", c);
if (d > a && d > a && d > c)
    printf("%d\n", d);


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 15:02:58
Judged At
2024-11-11 03:46:01
Judged By
Score
30
Total Time
0ms
Peak Memory
324.0 KiB