Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98332 | Kevin | 字符的前导值和后继值 | C++ | Wrong Answer | 1 MS | 276 KB | 306 | 2024-11-19 15:08:14 |
#include<bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; 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; }
------Input------
------Answer-----
Input Error! 33
------Your output-----
Input Error! Input Error!