/ 科创班 /

记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:11:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else
  ^~~~
/in/foo.c:14:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
   return 0;
   ^~~~~~
/in/foo.c:4:9: warning: unused variable 'temp' [-Wunused-variable]
  char n,temp;
         ^~~~
# 状态 耗时 内存占用
#1 Accepted 15ms 256.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 3ms 256.0 KiB
#6 Accepted 4ms 256.0 KiB
#7 Accepted 13ms 256.0 KiB
#8 Accepted 1ms 256.0 KiB
#9 Accepted 13ms 256.0 KiB
#10 Accepted 1ms 256.0 KiB

代码

#include<stdio.h>
int main()
{
	char n,temp;
	scanf("%c",&n);
	if(n>=65&&n<=90)
	{
		n+=32;
		printf("%c\n",n);
	}
	else
		if(n>=97&&n<=122)
			printf("%c\n",n);
		return 0;
}

信息

递交者
类型
递交
题目
字符转换
题目数据
下载
语言
C
递交时间
2018-06-17 17:40:25
评测时间
2018-06-17 17:40:25
评测机
分数
100
总耗时
59ms
峰值内存
256.0 KiB