Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7003 - Тэгш өнцөгт

Өгөгдсөн тэгш өнцөгтийн талбай ба периметрийг ол.

Input

Тэгш өнцөгтийн урт ба өргөн нь бүхэл тоон утгаар нэг мөрөнд зайгаар тусгаарлагдан өгөгдөнө.

Output

Талбай ба периметр зайгаар тусгаарлагдан нэг мөрөнд хэвлэгдэнэ.

Example

Input:
6 4

Output:
24 20

Нэмсэн:Bataa
Огноо:2011-01-16
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2022-11-15 09:38:01
bathishig bn uu negun bn
2022-11-09 05:39:24
https://youtube.com/

Last edit: 2022-11-09 05:40:34
2022-11-08 05:35:18
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int a,b,c,s;
cin>>b>>c;
s = (b+c)*2;
a = (b*c);
cout<<a<<" "<<s<<endl;
}
2022-10-31 15:15:49
int a, b;
cin >> a >> b;
cout << a * b << " " << (a+b) * 2;
2022-05-06 04:00:44


Last edit: 2022-05-06 04:02:25
2022-04-08 18:23:40
#include<iostream>
using namespace std;
int main()
{
int a, b;
cin>>a>>b;
cout<<a*b<<" "<<(a+b)*2<<endl;
return 0;
}
ingeed hiichij chadku bnu?
2022-03-27 11:07:48
#include<stdio.h>
int main()
{
int n,a;
scanf("%d",&n);

{
while (a>n);
printf("IOI\n");
a++;
}
return 0;
}
2022-03-09 08:44:06
#include<stdio.h>
int main(){
int a,b,p,s;
scanf("%d%d",&a,&b);
p=2*(a+b);
s=a*b;
printf("%d %d",s,p);
return 0;
}
2021-12-16 10:35:26
#Python
a, b = [int(x) for x in input().split()]
print(a*b, (a+b)*2)
2021-12-11 12:15:50
a,s = [int(x) for x in input().split()]
print(str(a*s) + " " + str(2*(a+s)))
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.