Submission #2532744
Source Code Expand
def getinputdata(): # 配列初期化 array_result = [] data = input() array_result.append(data.split(" ")) flg = 1 try: while flg: data = input() array_temp = [] if(data != ""): array_result.append(data.split(" ")) flg = 1 else: flg = 0 finally: return array_result arr_data = getinputdata() s = arr_data[0][0] sposi = 0 chkflg = False while(s.find("KIH", sposi) >= 0): cnt = s.find("KIH", sposi) sposi = cnt + 1 print(cnt,s[cnt + 3:cnt + 5],s[cnt + 3:cnt + 7]) if (s[cnt + 3:cnt + 5].find("BR") >= 0) or (s[cnt + 3:cnt + 6].find("BAR") >= 0) or (s[cnt + 3:cnt + 8].find("ABARA") >= 0): chkflg=True break print("YES" if chkflg else "NO")
Submission Info
Submission Time | |
---|---|
Task | A - AKIBA |
User | senshi2000 |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 946 Byte |
Status | WA |
Exec Time | 17 ms |
Memory | 3064 KB |
Judge Result
Set Name | sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
sample | sample-01.txt, sample-02.txt, sample-03.txt |
All | sample-01.txt, sample-02.txt, sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt, 01-14.txt, 01-15.txt, 01-16.txt, 01-17.txt, 01-18.txt, sample-01.txt, sample-02.txt, sample-03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | WA | 17 ms | 3064 KB |
01-02.txt | WA | 17 ms | 3064 KB |
01-03.txt | AC | 17 ms | 3064 KB |
01-04.txt | AC | 17 ms | 3064 KB |
01-05.txt | WA | 17 ms | 3064 KB |
01-06.txt | WA | 17 ms | 3064 KB |
01-07.txt | WA | 17 ms | 3064 KB |
01-08.txt | WA | 17 ms | 3064 KB |
01-09.txt | WA | 17 ms | 3064 KB |
01-10.txt | WA | 17 ms | 3064 KB |
01-11.txt | WA | 17 ms | 3064 KB |
01-12.txt | AC | 17 ms | 3064 KB |
01-13.txt | AC | 17 ms | 3064 KB |
01-14.txt | WA | 17 ms | 3064 KB |
01-15.txt | WA | 17 ms | 3064 KB |
01-16.txt | AC | 17 ms | 3064 KB |
01-17.txt | WA | 17 ms | 3064 KB |
01-18.txt | WA | 17 ms | 3064 KB |
sample-01.txt | WA | 17 ms | 3064 KB |
sample-02.txt | AC | 17 ms | 3064 KB |
sample-03.txt | AC | 17 ms | 3064 KB |