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
2023-09-14 01:42:46
Шөнийн амьдралын хэв маягтай
2023-09-14 01:42:15
Хулгана барьдаг
2023-09-14 01:42:02
Өдөөр бүрхэгдсэн
2023-09-14 01:41:49
Хоёр хөл дээрээ явдаг
2023-09-14 01:41:34
Шинж чанар
2023-09-13 06:43:56
#include <iostream>
using namespace std;

int main() {
int x,y,a,b,c,i,s,j;
cin>>a;
cout<<a;
return 0;
}
2023-09-13 05:57:47
#include <iostream>
using namespace std;

int main() {
int x,y,a,b,c,i,s,j;
cout<<"I"<<endl;
cout<<"O"<<endl;
cout<<"I"<<endl;
return 0;
}
2023-09-13 05:34:20
#include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
if(a+3>7){
cout<<(a+3)-7;
}
else
cout<<a+3;
}
2023-09-08 12:19:30
https://krunker.io/?game=SIN:xfpc4
2023-09-07 17:48:51
#include <bits/stdc++.h>

using namespace std;

int main() {

long long a,b,c,d,s=0,i,p,k=0,x,test,y,n,de,doo,ba,zu,t;
cin>>n;
for(i=1;i<=n;i++){
cin>>a>>b>>c;
if(a==b){
cout<<'0'<<endl;
}
if(a<b){
if( (b-(b+a)/2)%c==0){
cout<<(b-(b+a)/2)/c<<endl;
}
else
cout<<(b-(b+a)/2)/c+1<<endl;
}
if(a>b){
if( (a-(b+a)/2)%c==0){
cout<<(a-(b+a)/2)/c<<endl;
}
else
cout<<(a-(b+a)/2)/c+1<<endl;
}
}
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.