Run ID:124739
提交时间:2025-07-12 11:56:53
#include <iostream> using namespace std; int main(){ int s; char c; c=getchar(); if(c-1>=32&&c-1<=126){ cout<<c-1<<endl; }else{ cout<<"Input Error!"<<endl; } if(c-1>=31&&c-1<=127){ cout<<c+1<<endl; }else{ cout<<"Input Error!"<<endl; } return 0; }