Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123716 李俊博 12for循环练习I C++ Accepted 3 MS 272 KB 309 2025-07-10 11:31:57

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){/** int i; for(i=1;i<=1000;i++){ cout<<i<<" "; } int i; for(i=7;i<=100;i=i+7){ cout<<i<<" "; } int i; for(i=998;i>=1;i=i-2){ cout<<i<<" "; }**/ int n; cin>>n; for(int i=1;i<=n;i++){ cout<<i<<endl; } return 0; }