题目链接:http://poj.org/problem?id=1300
这题是比较裸的欧拉回路与欧拉通路的判定公式的应用,但这题最可怕的应该是它的读入。。。
Hint:欧拉回路/欧拉通路要求基图联通,意思是不存在孤立的点,而不是整个图只有一个联通块。
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
char buf[500];
int d[500],buffer[500];
int cnt=0,k=0,odd[2],S,n,tot=