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
2024-09-30 13:13:02
#include<stdio.h>
int a,b,c,d,e;
int main ()
{
scanf("%d %d %d",&a,&b,&c);
d=(c-1)/b+1;
e=c%b;
if (e==0) e=b;
printf("%d %d",d,e);
return 0;

}
2024-09-30 13:00:48
narar.aternos.me:48048
2024-09-30 12:50:36
narar.aternos.me
2024-09-30 12:42:07
spinefoot.aternos.host:43543
2024-09-30 12:39:30
Enkherdene2011.aternos.me
2024-09-30 12:03:39
#include <iostream>
using namespace std;

int main() {
int a, v, s;
cin>>a;
v=a*a*a;
s=a*a*6;
cout<<v<<" "<<s;

return 0;
}
2024-09-30 11:25:58
#include <bits/stdc++.h>
using namespace std;

int main() {
2024-09-27 13:48:48
#include <bits/stdc++.h>
using namespace std;

int main() {
int n;
cin >> n;
int arr[n];

for(int i = 0; i < n; i++) {
cin >> arr[i];
}

vector<int> order;
vector<int> MAXorder;

for(int i = 0; i < n-1; i++) {
if(arr[i] >= arr[i+1]) {
order.push_back(arr[i]);
if(i+2 >= n) {
order.push_back(arr[i+1]);
} else if(arr[i+1] < arr[i+2]) {
order.push_back(arr[i+1]);
}
} else {
if(order.size() > MAXorder.size()) {
MAXorder = order;
}
order.clear();
}
}


if(order.size() > MAXorder.size()) {
MAXorder = order;
}
if(MAXorder.empty()==true){
MAXorder.push_back(1);
}


cout << MAXorder.size() << endl;
for(int x : MAXorder) {
cout << x << " ";
}

return 0;
}
2024-09-25 05:50:43
1

Last edit: 2024-09-25 05:51:24
2024-09-24 07:19:32
https://www.canva.com/design/DAGRpRuqb0I/QJctnK1HftqB3FD0ZO-vpw/edit?utm_content=DAGRpRuqb0I&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.