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
2024-04-17 09:32:10
#include <bits/stdc++.h>
using namespace std;
int main () {
int a,b,p,s;
cin >> a;
cin >> b;
s=a*b;
p=(a+b)*2;
cout<<s<<endl;
cout<<p<<endl;
return 0;
} ....
2024-04-11 03:38:50
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int a, b, p, s;

cin >> a;
cin >> b;
s = a * b;
p = (a + b) * 2;
cout << s << endl;
cout << p << endl;
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
2023-11-20 06:19:53
#include <iostream>
using namespace std;

int main() {


int a,b;
cin>>a>>b;
cout<<a*b<< " " <<(a+b)*2;

return 0;
}
2023-10-30 11:36:42
https://tetr.io/#FDLZ
2023-10-30 11:26:30
https://tetr.io/#QLCX
2023-10-30 07:02:53
#include<stdio.h>
#include<math.h>
int a,b,p,s;
main(){
scanf("%d %d",&a,&b);
p=(a+b)*2;
s=a*b;
printf("%d %d",s,p);
}
2023-10-30 07:02:43
#include<stdio.h>
#include<math.h>
int a,b,p,s;
main(){
scanf("%d %d",&a,&b);
p=(a+b)*2;
s=a*b;
printf("%d %d",s,p);
}
2023-10-19 10:12:46
#include<stdio.h>
#include<stdlib.h>
main(){
int x;
scanf("%d",&x);
x=x%10;
printf("%d",x);
return 0;
}
2023-10-13 07:59:52
love u tumen


Last edit: 2023-10-13 08:00:27
2023-09-23 11:04:00
huulhin bol ci bovgu gay har nigger al :))

Last edit: 2023-09-23 11:04:36
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.