Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128911 刘一诺 找规律1 C++ 解答错误 0 0 MS 248 KB 173 2024-01-26 11:21:40

Tests(0/10):


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


测评信息: