Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
324651 顾子丞 【C2-3】禁止用7 C++ 通过 100 2 MS 252 KB 246 2025-05-31 11:21:42

Tests(3/3):


#include<iostream> using namespace std; int main(){ long long n; int m,c=0; cin>>n; while(n>0){ m=n%10; n/=10; if(m==7){ c++; } } cout<<c<<endl; if(c==0){ cout<<"yes"; }else{ cout<<"no"; } return 0; }


测评信息: