Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124726 王金檐 字符的前导值和后继值 C++ Wrong Answer 1 MS 272 KB 273 2025-07-12 11:51:12

Tests(0/10):


Code:

#include <iostream> using namespace std; int main(){ int s; char c; c=getchar(); s=int (c); if(s>32){ cout<<char(s-1)<<endl; }else{ cout<<"Input Error!"<<endl; } if(s<127){ cout<<char(s+1); }else{ cout<<"Input Error!"; } return 0; }


Run Info:

------Input------
[
------Answer-----
90 92
------Your output-----
Z \