Run ID:152671

提交时间:2026-04-30 15:39:13

#include<bits/stdc++.h> using namespace std; int main(){ char a,b,c; cin.get(a); b=a-1; c=a+1; if(b>=32&&b<=126){ cout<<int(b)<<endl; }else{ cout<<"Input Error!"<<endl; } if(c>=32&&c<=126){ cout<<int(c)<<endl; }else{ cout<<"Input Error!"; } return 0; }