Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128915 林麒瑞 找规律1 C++ 解答错误 0 0 MS 244 KB 144 2024-01-26 11:24:15

Tests(0/10):


#include<bits/stdc++.h> using namespace std; int main(){ int n,s; cin>>n; if(n%2==1) s=n-1; else s=n+1; cout<<s; return 0; }


测评信息: