Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77802 杨一诺 字符的前导值和后继值 C++ Accepted 0 MS 272 KB 291 2024-06-15 14:09:14

Tests(10/10):


Code:

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