Submission #46578949
Source Code Expand
def count_diff(q,a):
lst_q = list(q)
lst_a = list(a)
len_q = len(lst_q)
ng = 0
for i in range(len_q):
if lst_q[i] != lst_a[i]:
ng += 1
return(ng)
a=str(input())
b=a.split()
a=int(b[0])
b=b[1]
d=[0]
e=0
f=0
for i in range(1,a+1):
c=str(input())
if b==c:
d.append(i)
e=e+1
f=1
elif b[1:]==c:
d.append(i)
e=e+1
f=1
elif b[:len(b)-1]==c:
d.append(i)
e=e+1
f=1
else:
for j in range(0,len(c)):
if c[:j]+c[j+1:]==b:
d.append(i)
e=e+1
f=1
break
if f==0:
if count_diff(b,c) == 1:
d.append(i)
e=e+1
f=0
d.pop(0)
print(e)
if d:
g=str(d[0])
for i in range(1,len(d)):
g=g+" "+str(d[i])
print(g)
Submission Info
| Submission Time | |
|---|---|
| Task | C - Error Correction |
| User | s1901108 |
| Language | Python (CPython 3.11.4) |
| Score | 0 |
| Code Size | 793 Byte |
| Status | RE |
| Exec Time | 2210 ms |
| Memory | 25120 KiB |
Judge Result
| Set Name | Sample | All | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 0 / 300 | ||||||||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt, example2.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, 016.txt, 017.txt, 018.txt, 019.txt, 020.txt, 021.txt, 022.txt, 023.txt, 024.txt, 025.txt, 026.txt, 027.txt, 028.txt, example0.txt, example1.txt, example2.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | RE | 10 ms | 8944 KiB |
| 001.txt | AC | 11 ms | 10216 KiB |
| 002.txt | TLE | 2208 ms | 10916 KiB |
| 003.txt | TLE | 2208 ms | 10876 KiB |
| 004.txt | TLE | 2208 ms | 10880 KiB |
| 005.txt | TLE | 2207 ms | 10892 KiB |
| 006.txt | TLE | 2208 ms | 25120 KiB |
| 007.txt | RE | 10 ms | 8912 KiB |
| 008.txt | RE | 10 ms | 8916 KiB |
| 009.txt | RE | 10 ms | 9072 KiB |
| 010.txt | RE | 10 ms | 8852 KiB |
| 011.txt | RE | 10 ms | 8916 KiB |
| 012.txt | RE | 10 ms | 8900 KiB |
| 013.txt | RE | 10 ms | 8980 KiB |
| 014.txt | RE | 10 ms | 8892 KiB |
| 015.txt | RE | 11 ms | 8960 KiB |
| 016.txt | RE | 11 ms | 8984 KiB |
| 017.txt | RE | 11 ms | 9008 KiB |
| 018.txt | RE | 17 ms | 8992 KiB |
| 019.txt | RE | 44 ms | 9236 KiB |
| 020.txt | RE | 34 ms | 9172 KiB |
| 021.txt | RE | 217 ms | 9648 KiB |
| 022.txt | RE | 759 ms | 10112 KiB |
| 023.txt | TLE | 2210 ms | 9384 KiB |
| 024.txt | AC | 11 ms | 9476 KiB |
| 025.txt | AC | 11 ms | 10200 KiB |
| 026.txt | RE | 16 ms | 14176 KiB |
| 027.txt | RE | 16 ms | 14120 KiB |
| 028.txt | RE | 16 ms | 14188 KiB |
| example0.txt | AC | 10 ms | 8776 KiB |
| example1.txt | AC | 10 ms | 8712 KiB |
| example2.txt | RE | 10 ms | 8824 KiB |