1135 - C语言4.10

通过次数

0

提交次数

0

时间限制 : 1 秒 内存限制 : 32 MB

读入一个大写字母,输出对应的小写字母。

题目输入

一个大写字母。

题目输出

输出读入的大写字母对应的小写字母。

请注意行尾输出换行。

输入/输出样例

输入格式

A

输出格式

a

C语言解答

#include<stdio.h>
int main(){
char c;
c=getchar();
printf("%c\n",c+32);
return 0;
}

C++解答

#include <stdio.h>
#include <math.h>
int main() {
	char a;
	a = getchar();
	a += 'a' - 'A';
	printf("%c\n", a);
	return 0;
}

Java解答

import java.util.*;
public class Main {
	public static void main(String args[]) {
		Scanner cin=new Scanner(System.in);
		String s=cin.next();
		System.out.printf("%s\n",s.toLowerCase());
	}
}

Python解答

print raw_input().lower()