提交时间:2024-05-02 16:05:50

运行 ID: 46272

#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n%7==0){ cout<<"yes"; return 0; } int ws=0; while(n!=0){ if(n%10==7){ cout<<"yes"; return 0; } ws++; n/=10; } cout<<"no"; return 0; }