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

CP008 - Утга

Дараах үед y-ийн утгыг ол.

Хэрэв x>0 y=x-12

Хэрэв x=0 y=5

Хэрэв x<0 y=x*x

Input

x тоо өгөгдөнө.

Output

y тоог хэвлэнэ.

Example

Input:
5

Output:
-7

Нэмсэн:munkhbat
Огноо:2015-02-12
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ASM64 NCSHARP JS-MONKEY JULIA PYPY3

hide comments
2024-01-24 07:58:54
#include<stdio.h>
int main(){
int x,y;
scanf("%d",&x);
if(x>0) y=x-12;
if(x=0) y=5;
if(x<0) y=x*x;
printf("%d",y);
}
2022-02-06 04:57:50
#include<cstdio>
int main() {
int x, y, a, b, c, d;
scanf("%d", &x);
if(x>0){
y=x-12;
}
if(x==0){
y=5;
}
if(x<0){
y=x*x;
}
printf("%d", y);
}
//????? x>0 y=x-12

//????? x=0 y=5

//????? x<0 y=x*x
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.