input
3
1,0 2,1
4,2,0 1,2,0
1,0 10,6,4,2,1
output
case #0:
1,0,1
case #1:
1,1,1,0
case #2:
1,0,0,0,0,1
answer
case #0:
1,0,1
case #1:
1,1,1,0
case #2:
1,0,0,0,0,1
checker’s comment
wrong answer: line 5 differ - expected: ‘case #2:’, found: ‘case #2:’
???????????????????????????????????????????????????????????????????????
from math import sqrt
def isPrime(n):
for i in range(2,int(sqrt(n))+1):
if n % i == 0:
return False
return True
l = [] #质数表
for x in range(2,103):
if isPrime(x):
l.append(x)
times = eval(input())
for j in range(times):
s = input()
a,b = s.split()
a = a.split(“,”)
b = b.split(“,”)
bitsa = len(a)
bitsb = len(b)
a1 = []
b1 = []
c1 = []
for i in range(26):
c1.append(0)