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.|

RGB7002 - Гурвалжин

Өгөгдсөн гурвалжны периметрийг ол.

Input

Гурвалжны талууд бүхэл тоогоор нэг мөрөнд зайгаар тусгаарлагдан өгөгдөнө.

Output

Гурвалжны периметр.

Example

Input:
3 4 5

Output:
12


Нэмсэн:Bataa
Огноо:2011-01-15
Хугацааны хязгаарлалт: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
2020-10-13 09:58:04
spojoo ustaga erkhesee
2020-10-13 09:58:03
bti huts
2020-10-13 09:57:11
suga erkhes
2020-10-13 08:46:07
#include <stdio.h>
#include <stdlib.h>

int main()
{
int n,i,j;
scanf("%d",&n);
for(i=1; i<=n; i++) {
if(i%2 == 0) {
for (j=1; j<=n; j++) {
if(j%2 == 0) {
printf("x");
}
else printf("o");
}
}
else {
for (j=1; j<=n; j++) {
if(j%2 == 0) {
printf("o");
}
else printf("x");
}
}
printf("\n");
}
}
2020-10-01 16:16:55
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<a+b+c;
}
2020-09-10 05:46:46
ene yyg zuvnu

#include <iostream>
using namespace std;

int main() {
int a , b , c;
cin >> a >> b >> c;
int peri = a + b + c;
cout << peri;
return 0;
}
2020-08-09 17:25:52
2.0
2020-08-09 17:25:32
#include<iostream>
using namespace std;
int main() {
char n,a,b;
cin>>n>>a>>b;
cout<<n<<a<<b;
return 0;
}
2020-08-07 18:42:55
#include<iostream>
using namespace std;
int main()
{
char n;
cin>>n;
cout<<n;
return 0;
}
2020-08-07 18:35:14
#include<cstdio>
#include<cmath>
float mx, mn, l;
float a[101];
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.