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

Tests(9/10):


Code:

#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; }


Run Info:

------Input------
~
------Answer-----
125 Input Error!
------Your output-----
125 127