| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 52395 | 马若兮 | 连续数字 | C++ | Accepted | 0 MS | 248 KB | 238 | 2024-10-05 08:38:15 |
#include<iostream> using namespace std; int main() { int m=0,n=0,time=0; cin>>n>>m; for(int i=0;i<n;i++){ if(m>0 && time<2){ cout<<"1"; m--; time++; } else{ cout<<"0"; time=0; } } return 0; }