Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
73446 sh25_shenpy 与指定数字相同的数的个数 C++ 运行超时 3000 MS 240 KB 256 2025-11-09 20:15:13

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int main( ) { int n,x,sum=0,i=0; string s; cin>>n; cin>>s; cin>>x; while(i<=n-1) { if(s[i]==x){ sum+=1; } } cout<<sum; return 0; }


测评信息: