Submission #128415

#TimeUsernameProblemLanguageResultExecution timeMemory
128415MatesV13Magnus (COCI18_magnus)C++11
50 / 50
4 ms760 KiB
#include <bits/stdc++.h> using namespace std; int main (){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); string s; string okk = "HONI"; unsigned int ok=0, honi=0; cin >> s; for (unsigned int i=0 ; i<s.size() ; i++){ if (s[i]==okk[ok]){ ok++; if(ok==4){ ok=0; honi++; } } } cout << honi; 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...