백준 10815
def cc(m, sang): result = [] loc = [] sang = numpy.array(sang) for a in m: loc.append(numpy.where(sang == a)[0]) loc.sort() #for b in range(1, len(loc)): # print(loc[b]) for b in range(len(sang)): if b in loc: result.append(1) else: result.append(0) print(*result) if __name__ == '__main__': warnings.filterwarnings(action='ignore', category=DeprecationWarning) cc([6, 3, 2, 10, -10], [10, 9, -5, 2..
2023. 10. 22.