1 solutions
-
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
Information
- ID
- 10412
- Time
- 1000ms
- Memory
- 16MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By