摘要: 【题目描述】 原题来自:USACO 2006 Dec. Gold,原文见 POJ 3259 John 在他的农场中闲逛时发现了许多虫洞。虫洞可以看作一条十分奇特的有向边,并可以使你返回到过去的一个时刻(相对你进入虫洞之前)。John 的每个农场有 M 条小路(无向边)连接着 N(从 1 到 N 标号 阅读全文
posted @ 2022-07-15 21:17 刘炳源 阅读(194) 评论(0) 推荐(0)
摘要: #include <iostream>#include <vector> using namespace std; int p = -1; int ConversionFunc(string str, int system) { int k = str.size(), ncon = 0; for ( 阅读全文
posted @ 2022-07-15 16:29 刘炳源 阅读(59) 评论(0) 推荐(0)