Submission #1407062


Source Code Expand

Copy
#include <stdio.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)<(b)?(b):(a))
int main(){
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
printf("%d\n",MIN(a,b)+MIN(MAX(a,b),c));
return 0;
}

Submission Info

Submission Time
Task A - ringring
User mayumini
Language C (GCC 5.4.1)
Score 100
Code Size 222 Byte
Status
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:6:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&a);
 ^
./Main.c:7:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&b);
 ^
./Main.c:8:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&c);
 ^

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1.txt, sample2.txt
All 100 / 100 rnd_0.txt, rnd_1.txt, rnd_2.txt, rnd_3.txt, rnd_4.txt, rnd_5.txt, sample1.txt, sample2.txt
Case Name Status Exec Time Memory
rnd_0.txt 1 ms 128 KB
rnd_1.txt 1 ms 128 KB
rnd_2.txt 1 ms 128 KB
rnd_3.txt 1 ms 128 KB
rnd_4.txt 1 ms 128 KB
rnd_5.txt 1 ms 128 KB
sample1.txt 1 ms 128 KB
sample2.txt 0 ms 128 KB