12 条题解
- 1
信息
- ID
- 413
- 时间
- 1000ms
- 内存
- 16MiB
- 难度
- 3
- 标签
- 递交数
- 619
- 已通过
- 327
- 上传者
** //点个赞!点个赞!点个赞!❤️
#include <iostream>
using namespace std;
int main(){
int a,b,s,c;
cin >> a >> b;
c = (a + b) * 2;
s = a * b;
cout << c << endl << s;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin >> a >> b;
cout << 2 * (a + b) << endl << a * b << endl;
}
只需8行~
a = [int(i) for i in input().split()]
b = a[0] + a[1]
b = b * 2
c = a[0] * a[1]
print(b)
print(c)
` 低年级数学题
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n, m;
cin >> n >> m;
cout << n * 2 + m * 2 << endl << n * m;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
cout << (a + b) * 2 << endl;
cout << a * b;
return 0;
}
点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞! 点个赞!
using namespace std;
int main()
{
int y,x;
cin >> y >> x;
cout << (y+x)*2 << endl << y*x;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int n, m;
int main()
{
cin >> n >> m;
cout << 2 * (n + m) << endl << n * m;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin >> a >> b;
cout << 2 * (a + b) << endl << a * b << endl;
}