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-03-05 06:31:54
#include<bits/stdc++.h>
main(){
long long a;
scanf("%lld",&a);
if(a==1) printf(" |\n |\n");
if(a==2) printf(" -\n |\n -\n|\n -");
if(a==3) printf(" -\n |\n -\n |\n -");
if(a==4) printf("| |\n -\n |");
if(a==5) printf(" -\n|\n -\n |\n -");
if(a==6) printf(" -\n|\n -\n| |\n -");
if(a==7) printf(" -\n |\n \n |\n ");
if(a==8) printf(" -\n| |\n -\n| |\n -");
if(a==9) printf(" -\n| |\n -\n |\n -");}
2022-03-05 06:26:25
#include <bits/stdc++.h>
main ()
{
long long a;
scanf("%lld",&n);
if(a==1) printf(" \n");
printf(" |\n");
printf(" \n");
printf(" |\n");
printf(" \n");
}
if(n==2) {
printf(" - \n");
printf(" |\n");
printf(" - \n");
printf("| \n");
printf(" - \n");
}
if(n==3) {
printf(" - \n");
printf("| |\n");
printf(" - \n");
printf(" |\n");
printf(" \n");
}
if(n==5) {
printf(" - \n");
printf("| \n");
printf(" - \n");
printf(" |\n");
printf(" - \n");
}
if(n==6) {
printf(" - \n");
printf("| \n");
printf(" - \n");
printf("| |\n");
printf(" - \n");
}
if(n==7) {
printf(" - \n");
printf(" |\n");
printf(" \n");
printf(" |\n");
printf(" \n");
}
if(n==8) {
printf(" - \n");
printf("| |\n");
printf(" - \n");
printf("| |\n");
printf(" - \n");
}
if(n==9) {
printf(" - \n");
printf("| |\n");
printf(" - \n");
printf(" |\n");
printf(" - \n");
}
if(n==0) {
printf(" - \n");
printf("| |\n");
printf(" \n");
printf("| |\n");
printf(" - \n");
}
}

2022-03-05 06:20:04
#include<bits/stdc++.h>
main(){
int n,i,s=0;
char ss[1000];
while(gets(ss)!=NULL)
{n=strlen(ss);
ss[n]=' '; s=0;
for(i=0; i<=n; i++)
if(ss[i]==' ') s++;
printf("%d\n",s);
}
2022-02-23 08:49:05
#include <bits/stdc++.h>
using namespace std;
main(){
int a,b,c;
cin>>a>>b>>c;
cout<<a+b+c;
}
2022-02-22 07:58:57
#include <bits/stdc++.h>
using namespace std;
main(){
int a, b, c;
cin>>a>>b>>c;
cout<<a+b+c;
2021-12-16 10:33:22
#Python
a, b, c = [int(x) for x in input().split()]
print(a + b + c)
2021-12-11 12:00:40
too1, too2, too3 = [int(x) for x in input().split()]
print(too1+too2+too3)
2021-10-27 09:35:26
print("гурвалжны периметр олох")
a = int(input("гурвалжны А тал: "))
b = int(input("гурвалжны B тал: "))
c = int(input("гурвалжны C тал: "))

x = a + b +c
print("гурвалжны периметр: ", x)
#gla
2021-10-27 09:17:56
#using python
a = int(input("enter the number: "))
b = int(input("enter the number: "))
c = int(input("enter the number: "))

print(a + b + c)
#Gla
2021-10-12 09:27:24
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,p;
scanf("%d%d%d",&a,&b,&c);
p=a+b+c;
printf("%d",p);
return 0;
}
//NMIT 105 B.Bayarjargal//
//#3//
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.