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-11-20 06:21:21
har has
#include <iostream>
using namespace std;

int main() {

int a;
cin>>a;
cout<<a*3-5;

return 0;
}
2023-11-17 12:29:30
#include<iostream>
using namespace std;
int main () {
int a, n, m=0, e, b, x, c, d, shar, ulaan, nogoon;
cin>>a>>b>>c;
for (int i=a; i<=b; i++){
if (i%c==0){
m++;
}
if (i%c>0){
continue;
}
}
cout<<m;
}
2023-10-25 09:01:20
#include <iostream>
using namespace std;
int main() {
int x, s;
cin>>x;
s=(3*x)-5;
cout<<s;
return 0;
} hiiii
2023-10-22 05:30:16
ez botuda
2023-10-19 09:52:31
hi hi hi martchloo yaj bodhuuuu nzuudaa
2023-10-05 07:13:01
TANILTSII NZUD COMM BICED ORD IR ;)))
2023-10-05 07:12:28
eniig oilgihq bn.
2023-10-03 06:35:01
bod sugaa

2023-09-25 17:03:15
#include <iostream>
using namespace std;
int main() {
int x, s;
cin>>x;
s=(3*x)-5;
cout<<s;
return 0;
}
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;

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