1 solutions
-
0
C :
#include<stdio.h> #include<stdlib.h> int a,b; int main() { scanf("%d%d",&a,&b); int s=0; if(a>s)s=a; if(b>s)s=b; printf("%d",s*s); return 0; }C++ :
#include<iostream> #include<cstdlib> using namespace std; int main() { int a,b; cin>>a>>b; int a1=a*a; int b1=b*b; if(a>b) cout<<a1; else cout<<b1; //system("pause"); return 0; }Pascal :
var a,b:integer; begin read(a,b); if a>b then write(a*a) else write(b*b); end.
- 1
Information
- ID
- 17471
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By