Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98333 Kevin 字符的前导值和后继值 C++ Accepted 1 MS 272 KB 311 2024-11-19 15:09:13

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a; a=cin.get(); int qian,hou; qian=a-1; hou=a+1; if(qian>=32&&qian<=126) cout<<qian<<endl; else cout<<"Input Error!"<<endl; if(hou>=32&&hou<=126) cout<<hou<<endl; else cout<<"Input Error!"<<endl; return 0; }