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
2022-03-09 08:46:07
#include<stdio.h>
int main(){
int x,y;
scanf("%d",&x);
y=3*x-5;
printf("%d",y);
return 0;
}
2022-01-01 12:19:05
#include<stdio.h>
main ()
{
int x, y;
scanf("%d",x);
y = 3*x-5;
printf("y:%d",y);
}
2021-12-16 10:35:54
#Python
x = int(input())
print(3*x-5)
2021-12-14 09:12:45
buruu ymaa huul ntr tavihaasaa omno shalgadiuu
2020-09-26 08:26:36
#include <stdio.h>

main()
{
int y, x;
scanf("%d",&x);
y=3*x-5;
printf("%d",y);
}
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
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.