Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144285 万骏博 字符的前导值和后继值 C++ Accepted 0 MS 268 KB 291 2026-01-21 10:46:06

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char a; int main(){ a=getchar(); int i=a; if(i-1>126||i-1<32){ printf("Input Error!\n"); } else{ printf("%d\n",i-1); } if(i+1>126||i+1<32){ printf("Input Error!"); } else{ printf("%d",i+1); } return 0; }