Submission #1070089
Source Code Expand
#include<stdlib.h> int main(){ int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,& d); printf("%d\n", a*b > c*d ? a*b : c*d ); }
Submission Info
Submission Time | |
---|---|
Task | A - Two Rectangles |
User | Darsein |
Language | C (GCC 5.4.1) |
Score | 100 |
Code Size | 130 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 128 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:4:3: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] scanf("%d%d%d%d",&a,&b,&c,& d); ^ ./Main.c:4:3: warning: incompatible implicit declaration of built-in function ‘scanf’ ./Main.c:4:3: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ ./Main.c:5:3: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] printf("%d\n", a*b > c*d ? a*b : c*d ); ^ ./Main.c:5:3: warning: incompatible implicit declaration of built-in function ‘printf’ ./Main.c:5:3: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
All | subtask_1_abmax_01.txt, subtask_1_allmax_01.txt, subtask_1_cdmax_01.txt, subtask_1_rand_01.txt, subtask_1_rand_02.txt, subtask_1_rand_03.txt, subtask_1_same_01.txt, subtask_1_same_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 1 ms | 128 KB |
sample_02.txt | AC | 1 ms | 128 KB |
subtask_1_abmax_01.txt | AC | 1 ms | 128 KB |
subtask_1_allmax_01.txt | AC | 1 ms | 128 KB |
subtask_1_cdmax_01.txt | AC | 1 ms | 128 KB |
subtask_1_rand_01.txt | AC | 1 ms | 128 KB |
subtask_1_rand_02.txt | AC | 1 ms | 128 KB |
subtask_1_rand_03.txt | AC | 1 ms | 128 KB |
subtask_1_same_01.txt | AC | 1 ms | 128 KB |
subtask_1_same_02.txt | AC | 1 ms | 128 KB |