题解 | #3和5和7#
3和5和7
https://ac.nowcoder.com/acm/problem/22192
正常
#include<stdio.h>
int n;
int main(){
scanf("%d",&n);
for(int i=23;i<=n;i++){
if((i%3==2)&&(i%5==3)&&(i%7==2)) printf("%d\n",i);
}
}
摸完数据
#include<stdio.h>
int n;
int main(){
scanf("%d",&n);
for(int i=23;i<=n;i+=105){
printf("%d\n",i);
}
}
题解 文章被收录于专栏
https://ayx.moefox.tech/