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
2025-04-01 02:55:19
#include<Wire.h>
int led = 7;

void setup()
{
Wire.begin(4);
Wire.onReceive(reseiveEvent);
Serial.begin(9600);
pinMode(led, OUTPUT);
}

void loop()
{
delay(100);
}

void reseiveEvent(int howMany){
int x = Wire.read();
if(x == 1){
digitalWrite(led, HIGH);
}
else{
digitalWrite(led,LOW);
}
Serial.println(x);
}
2025-04-01 02:54:08
#include <Wire.h>
int but = 7;

void setup() {
Wire.begin();
pinMode(but, INPUT);
}

int x = 0;

void loop() {
x = digitalRead(but);
Wire.beginTransmission(4);
Wire.write(x);
Wire.endTransmission();

delay(500);
}
2025-03-27 05:23:03
#include <iostream>
using namespace std;

int main() {
int n;
cout << "Массивын хэмжээ оруулна уу: ";
cin >> n;

int arr[n];
cout << "Массивын элемэнтүүдийг оруулна уу: ";
for (int i = 0; i < n; i++) {
cin >> arr[i];
}

cout << "Оруулсан массив: ";
for (int i = 0; i < n; i++) {
}
cout << arr[i] << " ";

return 0;
}
2025-03-27 05:11:46


Last edit: 2025-03-27 05:12:09
2025-03-17 03:53:26
#include <stdio.h>
int main()
{
int a, b, c, p;
scanf("%d%d%d",&a,&b,&c);
p=a+b+c;
printf("%d",p);
return 0;
}huul

Last edit: 2025-03-17 03:54:17
2025-03-13 06:58:23
12
2025-03-08 07:45:48
...
2025-02-26 03:39:25
puehhhh
2025-02-20 08:56:38
#include <iostream>
using namespace std;
long long a,b,c,d,e,f,g,h,x,y,z,i,j,k,l,n=0,m=0;
int main() {
cin>>a>>b>>c;
c=c-1;
d=c/b+1;
e=c%b+1;

cout<<d<<' '<<e;
return 0;
}
2025-02-18 05:18:05
#include <stdio.h>
#include <stdlib.h>

void sort(int arr[], int n) {
int i, j, temp;
for (i = 0; i < n - 1; i++) {
for (j = 0; j < n - i - 1; j++) {
if (arr[j] > arr[j + 1]) {
temp = arr[j];
arr[j] = arr[j + 1];
arr[j + 1] = temp;
}
}
}
}

int main() {
int numbers[10];
int i;

printf("toogo oruulne uu: \n");
for (i = 0; i < 10; i++) {
scanf("%d", &numbers[i]);
}

sort(numbers, 10);

printf("Irembelsen too: \n");
for (i = 0; i < 10; i++) {
printf("%d ", numbers[i]);
}
printf("\n");

int hariu = numbers[0] * numbers[9];
printf("hamgiin baga ihiin urjver: %d\n", hariu);

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