Submission #3423509


Source Code Expand

#include<stdio.h>
int main(){
	long long a,b,c,d,x,y;
	scanf("%ld %ld %ld %ld",&a,&b,&c,&d);
	x=a*b;
	y=c*d;
	if(x>=y){
		printf("%ld\n",x);
		}
		else{printf("%ld\n",y);}
	return 0;
	}

Submission Info

Submission Time
Task A - Two Rectangles
User vjudge3
Language C++14 (GCC 5.4.1)
Score 100
Code Size 185 Byte
Status AC
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:4:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  scanf("%ld %ld %ld %ld",&a,&b,&c,&d);
                                     ^
./Main.cpp:4:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
./Main.cpp:4:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
./Main.cpp:4:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘long long int*’ [-Wformat=]
./Main.cpp:8:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
   printf("%ld\n",x);
                   ^
./Main.cpp:10:24: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
   else{printf("%ld\n",y);}
                        ^
./Main.cpp:4:38: warning: ignorin...

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All sample_01.txt, sample_02.txt, 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