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
2024-05-10 04:10:56
#include<bits/stdc++.h>
using namespace std;
int main(){
int i, n, s=0;
scanf("%d",&n);
for(i=1; i<=n; i++){
s=s+i;
}printf("%d",s);
}
2024-05-10 04:06:19
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d=0;
scanf("%d%d%d",&a,&b,&c);
if(a+b>c){
d++;
}
if(a+c>b){
d++;
}
if(b+c>a){
d++;
}
if(d==3){
printf("YES");
}
else{
printf("NO");
}
return 0;
}
2024-05-10 03:59:34
#include<stdio.h>
int main() {

int a;
scanf("%d",&a);
while(a>9){
a=a/10;
}
printf("%d",a);

return 0;
}
2024-05-10 03:51:54
#include<iostream>
using namespace std;

int main()
{
int n,s;
scanf("%d",&n);
s = (n+1)*(n+1)/4;
printf("%d",s);
return 0;
}
2024-05-10 03:45:32
#include <iostream>
using namespace std;

int main() {
int a,z=0,i;
scanf("%d",&a);
for(i=1;i<=a;i++){
z=z+i*i;

}
printf("%d",z);
}
2024-05-10 03:38:51
#include<bits/stdc++.h>
using namespace std;
int main (){
int dav,orts,ail,toot,orts1,dav1,ail1;
scanf("%d%d%d%d",&dav,&orts,&ail,&toot);
if(toot%(dav*ail)==0) orts1=toot/(dav*ail);
else orts1=toot/(dav*ail)+1;
toot=toot-((dav*ail))*(orts1-1);
if(toot%ail==0) dav1=toot/ail;
else dav1=toot/ail+1;
if(toot%ail==0) ail1=ail;
else ail1=toot%ail;
printf("%d %d %d",orts1,dav1,ail1);
return 0;
}
2024-05-09 12:33:05
https://garticphone.com/en/?c=0230edcb1b
2024-05-09 12:22:28
https://garticphone.com/en/?c=00f36df94c
2024-05-09 12:05:43
https://garticphone.com/en/?c=01d1ae8fea
2024-05-09 11:59:10
https://garticphone.com/en/?c=01d28392a2
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.