Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
128902 | 黄俊然 | 12输出m的倍数 | C++ | Accepted | 3 MS | 272 KB | 392 | 2025-08-20 16:31:11 |
#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 m,y; cin>>m>>y; for(int n=1;n<=m;n++){ if(n%y==0){ cout<<n<<" "; } } return 0; }