1 条题解
-
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
信息
- ID
- 3044
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者