Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
73364 sh25_shenpy 查找特定的值 C++ Wrong Answer 0 MS 240 KB 260 2025-11-09 11:03:03

Tests(0/1):


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


Judgement Protocol: