Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
50156 | yuanhaoxiang | 练51.2 老鹰捉小鸡 | C++ | No Test Data | 0 MS | 0 KB | 231 | 2024-08-12 18:46:24 |
#include<bits/stdc++.h> using namespace std; int main() { int a[6]; for(int i=1;1<=5;i++){ a[i]=i; } for(int i=0;i<10;i++){ cout<<i+1<<": "; for(int j=0;i<5;j++) cout<<a[(i+j)%5+1]<<" "; cout<<endl; } }