#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; width=y; } int getlength(){ return length; } int getwidth(){ return width; } int area(){ return length*width; } void compare(rectangle a){//里面的a就是外面的b.必须找到外面的a // write your code here...... int areaa=area(); int areab=a.area(); if(areaa>areab){ cout<<"1"<<endl; } else{ cout<<"0"<<endl; } } }; int main(){ int l1,w1,l2,w2; cin>>l1>>w1>>l2>>w2; rectangle a,b; a.set(l1,w1); b.set(l2,w2); a.compare(b); return 0; }