| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149841 | 李亭绪 | 19灯的编号 | C++ | Accepted | 1 MS | 276 KB | 549 | 2026-03-18 19:26:46 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,m; cin>>n>>m; int d[n+1]={0}; for(int j=1;j<=m;j++){ for(int i=1;i<=n;i++){ if(i%j==0){ d[i]++; } } } cout<<1; for(int i=2;i<=n;i++){ if(d[i]%2!=0) cout<<','<<i; } return 0; }