Submission #128436

#TimeUsernameProblemLanguageResultExecution timeMemory
12843644442Magnus (COCI18_magnus)C++11
50 / 50
3 ms760 KiB
#include <bits/stdc++.h> using namespace std; int ok,i,n; string s; int main (){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin>>s; n=s.size(); while(i<n){ while(i<n and s[i]!='H')i++; while(i<n and s[i]!='O')i++; while(i<n and s[i]!='N')i++; while(i<n and s[i]!='I')i++; if(i<n and s[i]=='I')ok++; } cout<<ok; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...