1 条题解
-
0
C :
#include<stdio.h> void main () { int a,b,c,s; scanf("%d%d",&a,&b); c=2*(a+b); s=a*b; printf("%d\n",c); printf("%d\n",s); }
C++ :
#include <iostream> using namespace std; int main(){ int x; int y; cin>>x; cin>>y; int c = (x + y) * 2; int s = x * y; cout<<c<<endl; cout<<s<<endl; }
Python :
#!/usr/bin/python3 a,b=map(int,input().split()) print(a*2+b*2) print(a*b)
- 1
信息
- ID
- 2336
- 时间
- 1000ms
- 内存
- 16MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者