PAST3E
PAST3E
E グラフに色塗りをする問題。バグを入れないように素朴で簡潔に書く
code:python
from collections import defaultdict
edges = defaultdict(list)
for i in range(NUM_EDGES):
for i in range(Q):
# print(colors)
# print(f, v)
if f == 1:
n, = v
print(c)
# sprincle
# print(edges)
elif f == 2:
n, c = v