#include <bits/stdc++.h> using namespace std; int main () { int n; cin>>n; if (n%3==0 && n%5==0) { cout<<"YES"; } else { cout<<"NO"; } return 0; }
#include<bits/stdc++.h> using namespace std; int main() { int m,n; cin>>m>>n; int t=m; int s=0; while(t<=n) //枚举m到n之间的所有数 { if(t%17==0) //判断17的倍数 { s+=t; } t++; } cout<<s; return 0; }
Using your lizikid universal account