8 条题解

  • -4
    @ 2024-2-21 17:48:45
    #include <stdio.h>
    using namespace std;
    int main() {
    	char s = '0';
    	scanf("%c", &s);
    	if (s >= 'a' && s <= 'z') {
    		s = s - 'a'+'A';
    	}else if (s >= 'A' && s <= 'Z') {
    		s = s -'A'+'a';
    	}
    	printf("%c\n", s);
    	return 0;
    }
    

    信息

    ID
    727
    时间
    1000ms
    内存
    64MiB
    难度
    5
    标签
    递交数
    462
    已通过
    188
    上传者