Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117226 | 施宸雨 | 12for循环练习I | C++ | Wrong Answer | 1 MS | 272 KB | 207 | 2025-04-14 22:17:11 |
#include <iostream> using namespace std; int main(){ int n; cin>>n; for (int i = 1;i <= 5;i++){ if (i == n){ cout<<i; } else{ cout<<i<<endl; } } return 0; }
------Input------
4
------Answer-----
1 2 3 4
------Your output-----
1 2 3 45