Run ID:124720
提交时间:2025-07-12 11:46:05
#include<bits/stdc++.h> using namespace std; int main(){ char a; a = getchar(); if(a-1>126||a-1<32){ cout<<"Input Error!"<<endl; } else{ cout<<int(a-1)<<endl; } if(a+1>126||a+1<32){ cout<<"Input Error!"<<endl; } else{ cout<<int(a+1)<<endl; } }