Submission #1065209
Source Code Expand
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int a, b, c, d; int s1, s2; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); s1 = a*b; s2 = c*d; if (s1 >= s2) { printf("%d", s1); } else { printf("%d", s2); } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Two Rectangles |
User | junk620 |
Language | C (GCC 5.4.1) |
Score | 100 |
Code Size | 301 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 128 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:10:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); ^ ./Main.c:11:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &b); ^ ./Main.c:12:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &c); ^ ./Main.c:13:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &d); ^
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 |