Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
325035 | 沈心 | 【C2-3】禁止用7 | C++ | 通过 | 100 | 1 MS | 256 KB | 267 | 2025-06-01 14:34:58 |
#include<iostream> using namespace std; int main(){ long long n; int s=0,a; cin>>n; while (n>0){ a=n%10; n=n/10; if (a==7){ s+=1; } } cout<<s<<endl; if (s>=1){ cout<<"no"<<endl; } else{ cout<<"yes"<<endl; } return 0; }