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-25 04:53:06
#include<iostream>
using namespace std;
int main(){
int a,b,c,d;
cin>>a;
d=a%10;
c=a%100/10;
if (a>-10) cout<<a;
else if (d>c) cout<<a/10-c+d;
else cout<<a/10;
}
2023-09-25 04:50:59
#include<iostream>
using namespace std;
int main () {
int a, n, m=0, t,e, b, x, c, d, i,shar, ulaan, nogoon, k;
cin>>a>>b>>c;
e=a+b;
k=a+c;
t=b+c;
if (c<e && b<k && a<t){
cout<<"Yes";
}
else {
cout<<"No";
}
}
2023-09-22 04:38:35
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int a,b,c,k[1234],h,g,i;
for(i=0 ; i<6 ; i++){
cin>>k[i];
}
cout<<(k[1]+k[2]+k[0])*(k[1]+k[2]+k[0])-k[0]*k[0]-k[2]*k[2]-k[4]*k[4];
}

Last edit: 2023-09-25 04:43:43
2023-09-21 05:21:16
1

Last edit: 2023-09-21 05:21:45
2023-09-19 04:18:33
hiii

Last edit: 2023-09-19 04:18:58
2023-09-19 04:11:04
1

Last edit: 2023-09-19 04:12:06
2023-09-19 04:10:40
hi

Last edit: 2023-09-19 04:12:14
2023-09-19 04:09:29
5

Last edit: 2023-09-19 04:12:22
2023-09-19 04:08:50
6

Last edit: 2023-09-19 04:12:30
2023-09-19 04:08:24
snu

Last edit: 2023-09-19 04:12:44
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.