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
2023-09-23 11:04:00
huulhin bol ci bovgu gay har nigger al :))

Last edit: 2023-09-23 11:04:36
2023-02-17 13:42:13

hinoru bna




#include<bits/stdc++.h>
using namespace std;
int main ()
{
int a,b;
cin>>a>>b;
cout<<a*b<<" "<<(a+b)*2;
}
2023-02-05 07:08:27
temuujeen chi suga banid vee
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;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.