题解,用char注意头文件我也要AC吗2026-02-15 11:50:33发布于:江苏0阅读0回复0点赞#include <bits/stdc++.h> using namespace std; int main(){ char n; cin >> n; if(n <= 'Z' && n >= 'A'){ cout << int(n) - 64; }else{ cout << int(n) - 96; } return 0; } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个