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-03-12 14:30:16
#_tsogtgerel_
nums = input().split()
print(int(nums[0])+int(nums[1])+int(nums[2]))

Last edit: 2023-03-12 14:34:49
2023-03-11 05:28:01
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <math.h>
#include <stdio.h>
using namespace std;


int main()
{ int a,b,c;
cin>>a>>b>>c ;
if(a%2==0 && b%2==0 && c%2==1) cout<< "Happy" ;
if(a%2==0 && b%2==1 && c%2==0) cout<< "Happy" ;
if(a%2==1 && b%2==0 && c%2==0) cout<< "Happy" ;
if(b%2==0 && a%2==1 && c%2==1) cout<< "Unhappy" ;
if(a%2==0 && b%2==1 && c%2==1) cout<< "Unhappy" ;
if(a%2==1 && b%2==1 && c%2==0) cout<< "Unhappy" ;
return 0;
}
2023-03-10 02:54:25
#include <iostream>

using namespace std;

int main()
{
int n,i,s=0,a[1000];
cin>>n;
for (i=0;i<n;i++){
cin>>a[i];
}
for (i=0;i<n/2;i++){
if (a[i]==a[n-i-1])
s=s+1;
}
if (s==n/2)
cout<<"YES";
else
cout<<"NO";

return 0;
}
2023-03-06 03:36:37
#include<bits/stdc++.h>
using namespace std;
int main ()
{
int i,j,q=0,b=1,a[10][10],n,m;
scanf("%d" ,&n);
for(i=1;i<=n;i++)
{for(j=1;j<=n;j++)
{
}}


for(i=1;i<=n;i++)
{
for(j=1;j<=n;j++)
{
printf("%3d " ,a[i][j]); }
printf("\n"); }

return 0;
}
2023-03-06 02:26:15
iiiiii
iiiiiiii
iiiiiiii
iiiiii
i
iii
i i i
i i i
i i
i i
i i
2023-03-01 06:24:40
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
scanf("%d%d%d%d",&a, &b, &c, &d);
if ((a23+b)%2 ==0 ^ (c+d)%2!=0) printf("YES");
else printf(NO");
}
2023-02-18 07:59:25
if(a==b&&(c==d==e)&&(a!=c)) printf("Full House");
if(a==c&&(b==d==e)&&(a!=e)) printf("Full House");
if(a==d&&(c==b==e)&&(a!=e)) printf("Full House");
if(a==e&&(c==d==b)&&(a!=c)) printf("Full House");
if(c==b&&(a==d==e)&&(a!=c)) printf("Full House");
if(d==b&&(c==a==e)&&(a!=d)) printf("Full House");
if(e==b&&(c==d==a)&&(a!=e)) printf("Full House");
if(d==c&&(a==b==e)&&(a!=c)) printf("Full House");
if(e==c&&(a==d==b)&&(a!=c)) printf("Full House");
if(e==d&&(c==a==b)&&(a!=d)) printf("Full House");
2023-02-18 07:59:25
if(a==b&&(c==d==e)&&(a!=c)) printf("Full House");
if(a==c&&(b==d==e)&&(a!=e)) printf("Full House");
if(a==d&&(c==b==e)&&(a!=e)) printf("Full House");
if(a==e&&(c==d==b)&&(a!=c)) printf("Full House");
if(c==b&&(a==d==e)&&(a!=c)) printf("Full House");
if(d==b&&(c==a==e)&&(a!=d)) printf("Full House");
if(e==b&&(c==d==a)&&(a!=e)) printf("Full House");
if(d==c&&(a==b==e)&&(a!=c)) printf("Full House");
if(e==c&&(a==d==b)&&(a!=c)) printf("Full House");
if(e==d&&(c==a==b)&&(a!=d)) printf("Full House");
2023-02-18 07:46:17
#include<bits/stdc++.h>
using namespace std;
int main ()
{
int n,s;
scanf("%d%d" ,&n ,&s);
while(s>0){
if(n%10!=0){
n=n-1;
s=s-1;
}
else{
n=n/10;
s=s-1;
}
}
printf("%d" ,n);
return 0;

}
2023-02-18 07:21:45
#include<bits/stdc++.h>
using namespace std;
int main ()
{
int n,s;
scanf("%d%d" ,n ,s);
while(s>0){
if(n%10!=0){
n=n-1;
s=s-1;
}
if(n%10==0){
n=n/10;
s=s-1;
}
}
printf("%d" ,n);
return 0;

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