#Lutece1332. 沈宝宝与二分图
沈宝宝与二分图
Migrated from Lutece 1332 沈宝宝与二分图
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
沈宝宝开始学习二分图啦
现在沈宝宝有了一个二分图,沈宝宝想知道有多少种方法选择一个点集
使得整个二分图中的点,要么在中,要么直接连着
Input
第一行两个整数,表示有个点,条边,点从1开始编号
接下来行,每行两个整数表示之间有一条边
输入保证没有重边自环,并且是个二分图
Output
输出一个整数,表示选择点集的方案
Samples
Resources
每周一题 div1