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
2022-11-20 04:28:05
#include <iostream>
using namespace std;

int main(){
int a,b,c;
cin >> a >> b >> c;
cout << a + b + c;
}
2022-11-16 08:08:19
llr
2022-11-15 10:01:47
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;


int main() {
int l,n,m,s,a,b,d,c,A,B,C;
char st[4];
cin>>a>>b>>c;
scanf("\n%s",st);
if(a>=b && a>=c) m=a;
if (c>=a && c>=b) m=c;
if (b>=a && b>=c) m=b;
if (a<=c && a<=b) n=a;
if (b<=a && b<=c) n=b;
if (c<=a && c<=b) n=c;
if ((c<=a && a<=b) || (b<=a && a<=c)) l=a;
if ((c<=b && b<=a) || (a<=b && b<=c)) l=b;
if ((b<=c && c<=a) || (a<=c && c<=b)) l=c;
if(st[0]=='A' && st[1]=='B' && st[2]=='C' ){
printf("%d %d %d",n,l,m);
}
if(st[0]=='A' && st[1]=='C' && st[2]=='B' ){
printf("%d %d %d",n,m,l);
}
if(st[0]=='B' && st[1]=='A' && st[2]=='C' ){
printf("%d %d %d",l,n,m);
}
if(st[0]=='B' && st[1]=='C' && st[2]=='A' ){
printf("%d %d %d",l,m,n);
}
if(st[0]=='C' && st[1]=='A' && st[2]=='B' ){
printf("%d %d %d",m,n,l);
}
if(st[0]=='C' && st[1]=='B' && st[2]=='A' ){
printf("%d %d %d",m,l,n);
}
return 0;
}
2022-11-08 05:34:53
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int s,t,v,g;
cin>>s>>t>>v;
g=t+v+s;
cout<<g<<endl;

}
2022-11-08 05:34:52
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int s,t,v,g;
cin>>s>>t>>v;
g=t+v+s;
cout<<g<<endl;

}
2022-11-04 07:24:23
#include <iostream>

using namespace std;

int main() {
int a ,b;
cin >> a >> b;
for ( int i = 1; i <= a; i++ ) {
if ( i % 2 == 1 ) {
for ( int i = 1; i <= b; i++ ) {
cout << "#";
}
}
else {
if ( i % 4 == 0 ) {
cout << "#";
b--;
for ( int i = 1; i <= b; i++ ) {
cout << ".";
}
b++;
}
else {
b--;
for ( int i = 1; i <= b; i++ ) {
cout << ".";
}
cout << "#";
b++;
}
}
cout << endl;
}
return 0;
}
2022-11-01 06:02:36
https://youtu.be/dQw4w9WgXcQ
2022-10-31 15:13:23
int a, b, c, p;
cin>>a>>b>>c;
p=a+b+c;
cout<<p<<endl;
2022-10-27 08:45:08
E
2022-10-27 02:33:08
#include<bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, p;
cin>>a>>b>>c;
p=a*b*c;
cout<<p<<endl;
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.