Submit | All submissions | Best solutions | Back to list |
RGB7005 - Функц 1 |
y=3x-5
Input
x бүхэл тоон утгаар өгөгдөнө.
Output
y-ийн утга.
Example
Input:
1
Output:
-2
Added by: | Bataa |
Date: | 2011-01-16 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | NCSHARP C++ 4.3.2 CPP CPP14 JULIA PYPY3 |
hide comments
2023-09-20 15:23:22
#include<stdio.h> using namespace std; int main() { int a,b; scanf("%d",&a); b=3*a-5; printf("%d",b); } |