Add tags

Add tags to the following comment

g++でコンパイルが通らなかったので、修正。(理由は不明)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
--- 4.cpp.old    Thu May 22 16:17:00 2008
+++ 4.cpp.new    Thu May 22 16:16:47 2008
@@ -72,9 +72,7 @@
         std::vector<std::vector<long> >(max_x,
             std::vector<long>(m + 1, std::numeric_limits<long>::max())));
 
-    dp.front().swap(
-        std::vector<std::vector<long> >(max_x,
-            std::vector<long>(m + 1, 0)));
+    dp[0] = std::vector<std::vector<long> >(max_x, std::vector<long>(m + 1, 0));
 
     REPE(y1, 0, n) REP(x1, 0, max_x) if (slip[y1][x1] >= 0) // source
     {

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...