Submission #1064874
Source Code Expand
#include <bits/stdc++.h>
#define ll long long int
#define fio ios_base::sync_with_stdio(0);cin.tie(0)
#define sd(t) scanf("%d",&t)
#define pd(t) printf("%d\n",t)
#define slld(t) scanf("%lld",&t)
#define plld(t) printf("%lld\n",t)
#define sc(t) scanf("%c",&t)
#define pb(x) push_back(x)
#define ii pair<int,int>
#define vi vector<int>
#define vvi vector<vi >
#define vii vector<ii >
#define vvii vector<vii >
#define clr(x) memset(x,0,sizeof(x))
#define rep(i,begin,end) for(__typeof(end) i=begin-(begin>end);i!=end-(begin>end);i+=1-2*(begin>end))
#define M_PI 3.14159265358979323846
#define MOD 1000000007
#define MAX 100005
#define EPS 1e-12
using namespace std;
int main()
{
int a,b,c,d;
sd(a); sd(b); sd(c); sd(d);
int a1 = a*b;
int a2 = c*d;
pd(max(a1,a2));
return 0;
}
Submission Info
Submission Time |
|
Task |
A - Two Rectangles |
User |
ironhide14 |
Language |
C++14 (GCC 5.4.1) |
Score |
100 |
Code Size |
814 Byte |
Status |
AC |
Exec Time |
3 ms |
Memory |
256 KB |
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:26:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
sd(a); sd(b); sd(c); sd(d);
^
./Main.cpp:26:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
sd(a); sd(b); sd(c); sd(d);
^
./Main.cpp:26:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
sd(a); sd(b); sd(c); sd(d);
^
./Main.cpp:26:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
sd(a); sd(b); sd(c); sd(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 |
3 ms |
256 KB |
sample_02.txt |
AC |
3 ms |
256 KB |
subtask_1_abmax_01.txt |
AC |
3 ms |
256 KB |
subtask_1_allmax_01.txt |
AC |
3 ms |
256 KB |
subtask_1_cdmax_01.txt |
AC |
3 ms |
256 KB |
subtask_1_rand_01.txt |
AC |
3 ms |
256 KB |
subtask_1_rand_02.txt |
AC |
3 ms |
256 KB |
subtask_1_rand_03.txt |
AC |
3 ms |
256 KB |
subtask_1_same_01.txt |
AC |
3 ms |
256 KB |
subtask_1_same_02.txt |
AC |
3 ms |
256 KB |