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-10-27 12:10:22
#include <iostream>
using namespace std;

int main() {

int x,a,b,m=0,c;
cin>>x>>a>>b>>c;
if (x%2==0){
m=m+x;
}
if (a%2==0){
m=m+a;
}
if (b%2==0){
m=m+b;
}

cout<<m;
return 0;
}
2023-10-27 11:58:38
#include <iostream>
using namespace std;

int main() {

int a, b, c, d, e, n, k;
cin>>n>>k;
cout<<n+(k-n%k);
return 0;
}
2023-10-27 11:56:08
https://tetr.io/#HRDQ
2023-10-27 06:33:30
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin>>a>>b>>c;
d=a+b+c;
cout<<d<<endl;
}
2023-10-26 11:35:31
#include <iostream>
using namespace std;

int main() {
int i,r,k,s,l;
cin>>l>>r>>k;
s=0;
for(i=l;i<=r;i++){
if(i%k==0)
s++;
}
cout<<s;


return 0;
}
2023-10-26 11:34:08
#include <iostream>
using namespace std;

int main() {
int i,r,k,s,l;
cin>>l>>r>>k;
s=0;
for(i=l;i<=r;i++){
if(i%k==0)
s++;
}
cout<<s;


return 0;
}
2023-10-26 11:17:46
#include <iostream>
using namespace std;

int main() {

int a,b,c;
cin>>a;
if(a%5==0){
cout<<a/5;
}
else
cout<<a/5+1;
return 0;
}
2023-10-25 11:34:40
https://tetr.io/#BVYQ
2023-10-25 07:34:00
86144488 100 negj bnu help
2023-10-24 04:04:32
tha shi zesty bruh


© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.