Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158356 王艺博 12输出m的倍数 C++ Accepted 1 MS 272 KB 169 2026-08-21 11:02:50

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main () { int a,n,m; cin>>n>>m; for(a=1;a<=n;a+=1){ if(a%m==0){ cout<<a<<' '; } } return 0; }