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
2020-09-03 12:59:58
#include <bits/stdc++.h>
using namespace std;
long long i, j, n, a, b,c,d, l,ll,r, s, t, k, m, xh, x, x1, y,z;
string p,q;
int main() {
int x,y;
cin>>x;
y=3*x-5;;
cout<<y;
}huul suguudaa
2019-12-08 07:26:14
#include <cstdio>

int main(){
long long dp[3][50];
int n , i;
scanf("%d" , &n);
dp[0][1] = 1;
dp[1][1] = 1;
dp[2][1] = 1;
for(i = 2 ; i <= n ; i++){
dp[0][i] = dp[0][i - 1] + dp[1][i - 1] + dp[2][i - 1];
dp[1][i] = dp[0][i - 1] + dp[2][i - 1];
dp[2][i] = dp[0][i - 1] + dp[1][i - 1] + dp[2][i - 1];
}
printf("%lld" , dp[0][n] + dp[1][n] + dp[2][n]);
}

Last edit: 2019-12-08 07:28:01
2019-12-02 06:05:13
#include <iostream>
using namespace std;
main()
{
int y, x;
cin>>x;
y=3*x-5;
cout<< ("%d",y );
}
huul
2019-11-29 08:15:12
#include <iostream>
using namespace std;

int main() {
int x,y;
cin>>x;
y=3*x-5;
cout<<y;
}
2019-10-26 06:19:23
#include <cstdio>
int main(){
int x,y;
scanf("%d",&x);
y=3*x-5;
printf("%d",y);
}
SUPER
2019-09-16 06:13:19
Blowjob hiine 95392248

Last edit: 2019-09-16 06:15:53
2019-09-16 06:11:15
9567037
\\
2019-09-16 06:09:52
95670377 zalga helj ogii
2019-08-31 06:50:45
#include <iostream>
using namespace std;
int main ()
{
int x,y;
scanf("%d", &x);
y=3*x-5;
printf("%d", y);
} suguuda ezi
2019-04-06 09:44:28
lol
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.