Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
337675 陈信宇 【C2-3】禁止用7 C++ 通过 100 1 MS 244 KB 258 2025-08-04 12:23:24

Tests(3/3):


#include<bits/stdc++.h> using namespace std; int main(){ long long a,s=0; cin>>a; while(a>0){ if(a%10==7){ s++; } a/=10; } if(s>0){ cout<<s<<endl; cout<<"no"; }else{ cout<<s<<endl; cout<<"yes"; } return 0; }


测评信息: