提交时间:2024-01-23 16:51:33

运行 ID: 125387

#include<iostream> using namespace std; int main() { int a; do{ cin >> a; }while( a<0 ); if( a%7==0 ) cout<<"yes"<<endl; else { for(; a>0; a/=10) { if( a%10==7 ) {cout<<"yes"<<endl;break;} } if( a==0 ) cout<<"no"<<endl; } return 0; }