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

RGB7005 - Функц 1

y=3x-5

Input

x бүхэл тоон утгаар өгөгдөнө.

Output

y-ийн утга.

Example

Input:
1

Output:
-2

Нэмсэн:Bataa
Огноо:2011-01-16
Хугацааны хязгаарлалт: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-08-24 05:23:54
#include <cmath>
#include <iostream>

using namespace std;

int main() {

long long a,b,m,c,i,x,s=0;
cin>>a>>b>>c;
m=a;
if(b>m){
m=b;
}
if(c>m){
m=c;
}
x=a+b+c-m;
if(m>x) {
cout<<(m-x+1);
}
if(m==x) {
cout<<1;
}
if(m<x) {
cout<<0;
}
return 0;

}
2023-08-24 05:23:45
100 10 10
2023-08-24 05:22:41


Last edit: 2023-08-24 05:23:16
2023-08-24 04:25:17


Last edit: 2023-08-24 04:25:43
2023-08-24 04:02:46
u

Last edit: 2023-08-24 04:23:16
2023-05-29 07:06:03
#include <iostream>
using namespace std;
int main() {
int x, s;
cin>>x;
s=(3*x)-5;
cout<<s;
return 0;
}
.
2023-04-24 05:28:20
huulsanc ydi goshnog mn
2023-03-06 15:31:54
punkc ee ioldgue lol
2023-02-25 15:38:35
suguud bitgii suguud geed bai
2023-02-18 12:29:58
spoj alternative https://bit.ly/3IwukPk
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.