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

}
2023-02-14 07:39:38
IF I CAN'T HAVE YOU NO ONE SHOULD
2023-02-13 03:29:10
GraphicsWindow.Width=500
GraphicsWindow.Height=400
GraphicsWindow.BackgroundColor="cyan"
GraphicsWindow.BrushColor="Yellow"
GraphicsWindow.FillEllipse(55,55,60,60)
GraphicsWindow.BrushColor="Red"
GraphicsWindow.FillTriangle(100,200,200,100,300,200)
GraphicsWindow.BrushColor="Orange"
GraphicsWindow.FillRectangle(110,200,180,150)
GraphicsWindow.BrushColor="Green"
GraphicsWindow.FillRectangle(0,320,2000,320)
GraphicsWindow.BrushColor="Red"
GraphicsWindow.FillRectangle(230,80,40,100)
GraphicsWindow.BrushColor="White"
GraphicsWindow.FillRectangle
2023-02-09 06:57:27
shaa ene nohoi olimpiadaas grmr bn
2023-02-08 10:47:39
i m sexy guy text gayshttps://www.facebook.com/balgansuren

Last edit: 2023-02-08 10:49:05
2023-01-23 07:27:42
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
scanf("%d%d%d%d",&a, &b, &c, &d);
if ((a+b)%2==0 ^ (c+d)%2!=0) printf("YES");
else printf("NO");
}

Last edit: 2023-01-23 07:28:14
2023-01-07 07:16:04
#include<bits/stdc++.h>

using namespace std;

int main () {
//freopen ("input.txt","r",stdin);
//freopen ("output.txt","w",stdout);
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long n, m, t, i, r, X, Y, x, j,z, y, s, ans, p;

//cin >> t;
cin >> n >> m;
long long Sum[1002][1002] = {0};
ans = 0;

for ( i = 1; i <= n; i ++) {
for ( j = 1; j <= m; j++) {
cin >> x;
Sum[i][j] = Sum[i - 1][j] + Sum[i][j - 1] - Sum[i - 1][j - 1];
Sum[i][j] += x;
}
}
cin >> t;
while ( t --) {
cin >> x >>y >> X >> Y;
s = Sum[X][Y] - Sum[x - 1][Y] - Sum[X][y - 1] + Sum[x - 1][y - 1];
cout << s << "\n";
}
}





2022-12-24 16:02:12
#include <iostream>
using namespace std;

int main(){
int a,b,c;
cin >> a >> b >> c;
cout << a + b + c;
} Huul2
2022-12-09 07:23:26
#include<stdio.h>
int main(){
int n,a,b;
scanf("%d",&n);
a=100;
b=a*n;
printf("%d",b);
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.