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.|

CP001 - Дөрвөн өнцөгт

Өгөгдсөн 4 өнцөгтийн периметрийг олох програм бич.

Input

4 натурал тоо зайгаар тусгаарлан өгөгдөнө. Тоонуудын утга 1000 аас хэтрэхгүй.

Output

4 өнцөгтийн периметрийг хэвлэнэ.

Example

Input:

1 2 3 4

Output: 10

Нэмсэн:munkhbat
Огноо:2015-02-12
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ASM64 NCSHARP JS-MONKEY JULIA PYPY3

hide comments
2024-03-22 02:33:16
a,b,c ,d=[int(x) for x in input().split()]
s=a+b+c+d
print(s)
2023-03-16 11:35:44
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c, d;
scanf("%d%d%d%d" ,&a ,&b ,&c ,&d);
printf("%d" ,a+b+c+d);
} munji
2022-10-12 05:27:10
#include<stdio.h>
int main()
{
int a,b,c,d,s;
scanf("%d%d%d%d",&a,&b,&c,&d);
s=a+b+c+d;
printf("%d",s);
return 0;
}
2022-10-12 05:25:53


Last edit: 2022-10-12 05:26:20
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.