/ 科创班 /

记录详情

Accepted


  
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 2ms 204.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 2ms 256.0 KiB
#6 Accepted 2ms 256.0 KiB
#7 Accepted 1ms 256.0 KiB
#8 Accepted 2ms 256.0 KiB
#9 Accepted 3ms 256.0 KiB
#10 Accepted 2ms 256.0 KiB

代码

#include <stdio.h>

int main()
{
    int x;
	int y;
	scanf("%d",&x);
	if(x!=0)
	{
		if(x>0)
			y=1;
		else
			y=-1;
	}
	else 
		y=0;
	printf("x=%d,y=%d\n",x,y);
	return 0;
}

信息

递交者
类型
递交
题目
4.7分段函数
题目数据
下载
语言
C
递交时间
2018-07-16 21:28:27
评测时间
2018-07-16 21:28:27
评测机
分数
100
总耗时
26ms
峰值内存
256.0 KiB