| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81341 | 石晋骁 | 字符的前导值和后继值 | C++ | Wrong Answer | 1 MS | 280 KB | 213 | 2024-07-12 11:41:25 |
#include<bits/stdc++.h> using namespace std; int main(){ int b; char a; cin.get (a); b = a; cout << b-1 << endl; if(b+1 > 126){ cout << "InputError!"; }else{ cout << b+1; } return 0; }
------Input------
------Answer-----
Input Error! 33
------Your output-----
31 33