| Task: | Babaza Game |
| Sender: | andy_btw_ |
| Submission time: | 2025-09-01 17:49:38 +0300 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | RUNTIME ERROR |
| test | verdict | time | |
|---|---|---|---|
| #1 | RUNTIME ERROR | 0.06 s | details |
| #2 | RUNTIME ERROR | 0.06 s | details |
| #3 | RUNTIME ERROR | 0.06 s | details |
| #4 | RUNTIME ERROR | 0.06 s | details |
| #5 | RUNTIME ERROR | 0.06 s | details |
| #6 | RUNTIME ERROR | 0.06 s | details |
| #7 | RUNTIME ERROR | 0.07 s | details |
| #8 | RUNTIME ERROR | 0.06 s | details |
| #9 | RUNTIME ERROR | 0.06 s | details |
| #10 | RUNTIME ERROR | 0.06 s | details |
| #11 | RUNTIME ERROR | 0.06 s | details |
| #12 | RUNTIME ERROR | 0.06 s | details |
| #13 | RUNTIME ERROR | 0.06 s | details |
| #14 | RUNTIME ERROR | 0.06 s | details |
Code
a,b = [str(x) for x in input().split()]
print(a)
#print(b)
def change_letter(word,i):
first_half = word[:i]
second_half = word[(i+1):]
complete_word = first_half + b[i] + second_half
return complete_word
letter_array = []
index_array = []
correct_array = []
for i in range(len(a)):
if a[i]!=b[i]:
letter_array.append(a[i])
index_array.append(i)
correct_array.append(b[i])
for i in index_array:
a = change_letter(a,i)
print(a)
#def check_next(i):
# for x in index_array:
# if i+1 == x: #existuje písmenko na dalším indexu
Test details
Test 1
Verdict: RUNTIME ERROR
| input |
|---|
| A B |
| correct output |
|---|
| A B |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 2
Verdict: RUNTIME ERROR
| input |
|---|
| BABAZA BACBCB |
| correct output |
|---|
| BABAZA BACACA BACBCB |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 3
Verdict: RUNTIME ERROR
| input |
|---|
| AB BA |
| correct output |
|---|
| AB CB CA BA |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 4
Verdict: RUNTIME ERROR
| input |
|---|
| ABC BCD |
| correct output |
|---|
| ABC DBD DCD BCD |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 5
Verdict: RUNTIME ERROR
| input |
|---|
| AXYB CXYD |
| correct output |
|---|
| AXYB CXYD |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 6
Verdict: RUNTIME ERROR
| input |
|---|
| LMIJLF PAQBMH |
| correct output |
|---|
| LMIJLF PMQJMF PAQBMH |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 7
Verdict: RUNTIME ERROR
| input |
|---|
| PNIWLSLIH CRLVPUFHD |
| correct output |
|---|
| PNIWLSLIH CNLWPSFID CRLVPUFHD |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 8
Verdict: RUNTIME ERROR
| input |
|---|
| ZDYIAVTKL ZJKVXGAUM |
| correct output |
|---|
| ZDYIAVTKL ZJYVAGTUL ZJKVXGAUM |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 9
Verdict: RUNTIME ERROR
| input |
|---|
| FBIXISJH NXZIESMG |
| correct output |
|---|
| FBIXISJH NBZXESMH NXZIESMG |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 10
Verdict: RUNTIME ERROR
| input |
|---|
| OPGW QJIE |
| correct output |
|---|
| OPGW QPIW QJIE |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 11
Verdict: RUNTIME ERROR
| input |
|---|
| DUKNPKQZBL NZPBMOEBIC |
| correct output |
|---|
| DUKNPKQZBL NUPNMKEZIL NZPBMOEBIC |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 12
Verdict: RUNTIME ERROR
| input |
|---|
| ZWDTX HZOXI |
| correct output |
|---|
| ZWDTX HWOTI HZOXI |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 13
Verdict: RUNTIME ERROR
| input |
|---|
| URJF ITIQ |
| correct output |
|---|
| URJF IRIF ITIQ |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...Test 14
Verdict: RUNTIME ERROR
| input |
|---|
| WYWBWU IRYVBA |
| correct output |
|---|
| WYWBWU WRWVWA IRYVBA |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 4, in <module>
a,b = [...