# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
199800 | 2020-02-03T13:04:42 Z | Gamma | Magnus (COCI18_magnus) | C++14 | 11 ms | 504 KB |
#include <bits/stdc++.h> using namespace std; string s, c = "HONI"; int ans; int main() { cin >> s; int j = 0; for(int i = 0; i < s.size(); i++) { if(c[j] == s[i]) { if(c[j] == 'I') ans++; j++; j %= 4; } } printf("%d\n", ans); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 256 KB | Output is correct |
2 | Correct | 5 ms | 256 KB | Output is correct |
3 | Correct | 5 ms | 256 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 380 KB | Output is correct |
2 | Correct | 5 ms | 256 KB | Output is correct |
3 | Correct | 5 ms | 256 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 256 KB | Output is correct |
2 | Correct | 5 ms | 256 KB | Output is correct |
3 | Correct | 5 ms | 376 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 256 KB | Output is correct |
2 | Correct | 5 ms | 256 KB | Output is correct |
3 | Correct | 5 ms | 256 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 256 KB | Output is correct |
2 | Correct | 5 ms | 256 KB | Output is correct |
3 | Correct | 5 ms | 256 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 10 ms | 504 KB | Output is correct |
2 | Correct | 10 ms | 504 KB | Output is correct |
3 | Correct | 10 ms | 504 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 10 ms | 504 KB | Output is correct |
2 | Correct | 11 ms | 504 KB | Output is correct |
3 | Correct | 10 ms | 504 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 10 ms | 504 KB | Output is correct |
2 | Correct | 10 ms | 504 KB | Output is correct |
3 | Correct | 11 ms | 504 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 10 ms | 504 KB | Output is correct |
2 | Correct | 11 ms | 504 KB | Output is correct |
3 | Correct | 10 ms | 504 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 10 ms | 504 KB | Output is correct |
2 | Correct | 10 ms | 504 KB | Output is correct |
3 | Correct | 10 ms | 504 KB | Output is correct |