| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61170 | 祝家懿 | 字符的前导值和后继值 | C++ | Wrong Answer | 1 MS | 268 KB | 224 | 2023-12-02 17:08:50 |
#include<iostream> #include<cstdio> using namespace std; int main(){ char ch=cin.get(); if(ch-1==31||ch+1==127){ cout<<"Input Error!"; } cout<<ch-1<<' '; cout<<ch+1<<' '; return 0; }
------Input------
------Answer-----
Input Error! 33
------Your output-----
Input Error!31 33