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
2020-02-24 06:33:24
haha ene goy bollo
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,n,s;
string sd,st,ss,sk;
cout<<"How old are you?: ";
cin>>n;
cout<<endl;
cout<<"What is you name?: ";
cin>>ss;
cout<<endl;
cout<<"Hello "<<n<<" year old "<<ss<<endl;
cout<<endl;
cout<<"what do you like to do?: ";
cin>>sk>>sd;
cout<<endl;
cout<<"why do you like to "<<sk<<" "<<sd<<":";
cin>>st;
cout<<endl;
cout<<"Okay "<<"thanks for talking with me :)";
return 0;
}
2020-02-07 11:21:05
#include <iostream>
using namespace std;
int main() {
int a,b,c,d;
cin >> a >> b >> c;
d=a+b+c;
cout << d;
return 0;
}
2020-02-06 11:45:58
soul
2020-01-25 05:32:20 2 heart
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int n,m,i;
bool b;
scanf("%lld",&n);
i=2; b=true; m=trunc(sqrt(n));
while (i<=m && b)
{
if (n%i==0) b=false;
else i++;
}
if (b==true ) printf("YES\n");
else printf("NO\n");
return 0;
}
2020-01-21 06:47:53
NICE
2020-01-21 05:19:54
#include <bits/stdc++.h>
main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%d",a+b+c);
}
2020-01-21 05:18:57
#include <bits/stdc++.h>
main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%d",a+b+c);
}
2020-01-21 05:18:19
se
2020-01-21 05:17:50
#include <bits/stdc++.h>
main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%d",a+b+c);
}
2020-01-19 10:36:49
/*
ID: tishkabn00
LANG: C++
TASK: word
*/

#include<bits/stdc++.h>

using namespace std;

int main(){
freopen("word.in","r",stdin);
freopen("word.out","w",stdout);

long long n,k,s,i,m,p;
string a;

cin>>n>>k>>a;

cout<<a;
m=a.size();
s=m;
for(i=2; i<=n; i++){
cin>>a;
m=a.size();
s=s+m;
if(s>k){
cout<<endl;
cout<<a;
s=m;
}else{
cout<<" "<<a;
}
}

return 0;

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