|
|
|
|
讨论 Discussion |
|
|
|
#include <bits/stdc++.h>
using namespace std;
int main(){
freopen("p1612.in","r",stdin);
freopen("p1612.out","w",stdout);
int n,m,x,y,i;
scanf("%d%d",&n,&m);
scanf("%d%d",&x,&y);
for (i=n;i<=m;i++) {
if(i%x==0&&i%y==0)printf("%d ",i);
}
fclose(stdin);
fclose(stdout);
return 0;
}
( ) |
|
|
|
|
|
|
|
|
|
Flag |
|
题号 |
P1782 |
|
数论 / 数值 |
通过 |
11人 |
提交 |
85次 |
通过率 |
13% |
难度 |
2 |
|
|
|
|
|
|