提交时间:2019-10-13 22:17:22

运行 ID: 1599

#include<iostream> int main(){ int a,s=1,q=0; scanf("%d",&a); while(s<=a){ if(s%3==2&&s%5==3&&s%7==2) q=q+1; s=s+1; } printf("%d",q); return 0; }