| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71018 | 沈俊博 | 19灯的编号 | C++ | Accepted | 1 MS | 272 KB | 265 | 2024-04-20 18:03:27 |
#include<iostream> using namespace std; int main(){ int n,m; cin>>n>>m; cout<<1; bool lo; for(int i=2;i<=n;i++){ lo=true; for(int j=1;j<=m;j++){ if(i%j==0){ lo=!lo; } } if(lo==false){ cout<<","<<i; } } return 0; }