| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77803 | 石依灵 | 字符的前导值和后继值 | C++ | Accepted | 1 MS | 272 KB | 423 | 2024-06-15 14:11:03 |
# include<iostream> using namespace std; int main(){ char s; int a,b; cin.get(s); a=(int)s-1; if(a>=32 && a<=126){ cout<<a; } else{ cout<<"Input Error!"; } cout<<endl; b=(int)s+1; if(b>=32 && b<=126){ cout<<b; } else{ cout<<"Input Error!"; } return 0; }