<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>EmK</author_name>
  <author_url>https://blog.hatena.ne.jp/EmK/</author_url>
  <blog_title>C♯の勉強</blog_title>
  <blog_url>https://emkcsharp.hatenablog.com/</blog_url>
  <categories>
    <anon>TopCoder</anon>
    <anon>Div2</anon>
    <anon>Div2Hard</anon>
  </categories>
  <description>全マスへの移動を考えるのではなく、残っている gold がある箇所と同じ行または列に移動することを考える。そうすると、移動箇所はたかだか 50*50 だけになる。あとは、「座標」と「日数」で動的計画法を適用すればよい。 \(O(|event|^4) \) public class MiningGoldEasy { int N, M; int[] event_i, event_j; int?[, ,] memo = new int?[50, 50, 50]; int GetCost(int row, int col, int eventIndex) { return N + M - Math.A…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Femkcsharp.hatenablog.com%2Fentry%2FSRM610%2FMiningGoldEasy&quot; title=&quot;TopCoder SRM610: MiningGoldEasy - C♯の勉強&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-05-31 15:40:10</published>
  <title>TopCoder SRM610: MiningGoldEasy</title>
  <type>rich</type>
  <url>https://emkcsharp.hatenablog.com/entry/SRM610/MiningGoldEasy</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
