Run ID:61175
提交时间:2023-12-02 17:11:31
#include<iostream> #include<cstdio> using namespace std; int main(){ char ch=cin.get(); if(ch-1==31){ cout<<"Input Error!"; cout<<ch+1<<' '; return 0; } else if(ch+1==127){ cout<<"Input Error!"; cout<<ch-1<<' '; return 0; } cout<<ch-1<<endl; cout<<ch+1<<endl; return 0; }