提交时间:2024-11-09 22:52:54

运行 ID: 56280

#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; }