| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 432651 | 沈子钰 | 【C2-3】禁止用7 | C++ | 通过 | 100 | 3 MS | 256 KB | 249 | 2026-03-14 17:22:42 |
#include<iostream> using namespace std; int main(){ long long n,g,s=0; cin>>n; while(n>0){ g=n%10; if(g==7){ s++; } n/=10; } cout<<s<<endl; if(s==0){ cout<<"yes"<<endl; } else{ cout<<"no"<<endl; } return 0; }