題目鏈接:
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=350
代碼+思路
#include <iostream> #include <cmath> #include <cstdio> #include <cstring> #include <cctype> #include <vector> #include <algorithm> #include <string> using>