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 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
2024-05-07 11:36:49
let a = Number(prompt("a"));
let b = Number(prompt("b"));
let c = Number(prompt("c"))
console.log(a + b +c);
2024-05-07 11:33:54
sd

2024-05-07 04:12:09
ш ыуу нүг үшлаүыүи гг йши йлшшыхгг яй хйхйхйхйхй

Last edit: 2024-05-07 04:13:13
2024-05-06 08:04:37
https://skribbl.io/?hQCXqOYq
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.