# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1007976 |
2024-06-26T04:22:46 Z |
vjudge1 |
Magnus (COCI18_magnus) |
Python 3 |
|
34 ms |
3536 KB |
def honiblock(word):
result = []
target = "HONI"
temp = ""
wordcount = 0
tempcount = 0
while wordcount < len(word):
if temp == target:
result.append(temp)
tempcount = 0
temp = ""
if word[wordcount] != target[tempcount]:
wordcount += 1
elif word[wordcount] == target[tempcount]:
temp += word[wordcount]
tempcount+=1
wordcount+=1
print(len(result))
honiblock(str(input()))
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
10 ms |
2908 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
10 ms |
2908 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
14 ms |
2908 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
2908 KB |
Output is correct |
2 |
Correct |
10 ms |
2908 KB |
Output is correct |
3 |
Correct |
10 ms |
2888 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
16 ms |
2772 KB |
Output is correct |
2 |
Correct |
10 ms |
2908 KB |
Output is correct |
3 |
Correct |
10 ms |
2908 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
3444 KB |
Output is correct |
2 |
Correct |
29 ms |
3356 KB |
Output is correct |
3 |
Correct |
25 ms |
3268 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
3340 KB |
Output is correct |
2 |
Correct |
26 ms |
3420 KB |
Output is correct |
3 |
Correct |
31 ms |
3420 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
28 ms |
3420 KB |
Output is correct |
2 |
Correct |
27 ms |
3420 KB |
Output is correct |
3 |
Correct |
32 ms |
3280 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
3420 KB |
Output is correct |
2 |
Correct |
27 ms |
3536 KB |
Output is correct |
3 |
Correct |
26 ms |
3420 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
3420 KB |
Output is correct |
2 |
Incorrect |
34 ms |
3412 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |