| Task: | Osajono |
| Sender: | Theofriberg |
| Submission time: | 2015-10-11 19:47:28 +0300 |
| Language: | Python3 |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | RUNTIME ERROR | 0 |
| #2 | RUNTIME ERROR | 0 |
| #3 | RUNTIME ERROR | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | RUNTIME ERROR | 0.09 s | 1 | details |
| #2 | RUNTIME ERROR | 0.09 s | 1 | details |
| #3 | RUNTIME ERROR | 0.08 s | 1 | details |
| #4 | RUNTIME ERROR | 0.10 s | 1 | details |
| #5 | RUNTIME ERROR | 0.10 s | 1 | details |
| #6 | RUNTIME ERROR | 0.09 s | 2 | details |
| #7 | RUNTIME ERROR | 0.09 s | 2 | details |
| #8 | RUNTIME ERROR | 0.09 s | 2 | details |
| #9 | RUNTIME ERROR | 0.09 s | 2 | details |
| #10 | RUNTIME ERROR | 0.09 s | 2 | details |
| #11 | RUNTIME ERROR | 0.10 s | 3 | details |
| #12 | RUNTIME ERROR | 0.08 s | 3 | details |
| #13 | RUNTIME ERROR | 0.08 s | 3 | details |
| #14 | RUNTIME ERROR | 0.08 s | 3 | details |
| #15 | RUNTIME ERROR | 0.09 s | 3 | details |
Code
ÿþs y o t e = i n p u t ( )
q t y = l e n ( s y o t e )
i m p o r t r e
d e f c o u n t O ( p a t t e r n , t h e s t r i n g ) :
t o t a l = 0
s t a r t = 0
t h e r e = r e . c o m p i l e ( p a t t e r n )
w h i l e T r u e :
m o = t h e r e . s e a r c h ( t h e s t r i n g , s t a r t )
i f m o i s N o n e :
r e t u r n t o t a l
t o t a l + = 1
s t a r t = 1 + m o . s t a r t ( )
f o r c i n "