Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
82226 王陈淼 07大小写转换 C++ Accepted 0 MS 272 KB 267 2024-07-13 09:33:42

Tests(10/10):


Code:

#include <iostream> using namespace std; int main() { char p; cin >> p; if(p>='a') { if(p<='z') { p=p-32; } }else{ if(p>='A'){ if(p<='Z'){ p=p+32; } } } cout << p; return 0; }