1 / 4

Problem C ラミー

Problem C ラミー. 問題作成者 坪坂 解法作成者 坪坂、中島 発表 坪坂. 間違った解法. 頭から順番にセットを作っていく. 222345. 225. 実はこの解法を想定しておらず、データセットが甘かったせいで、やり方 によっては 通った。 また、サンプルが一意に定まる例しかなかったせいで類似 の 方法で WA となった人が多かったかも.. 想定解法. 全 探索 n ext_permutation を使う (C ++) ->9! 通りの並びに対して前から 3 つずつ 取ってセットかどうか判定する。 再帰的に探索

kenny
Download Presentation

Problem C ラミー

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Problem C ラミー 問題作成者 坪坂 解法作成者 坪坂、中島 発表 坪坂

  2. 間違った解法 • 頭から順番にセットを作っていく 222345 225 実はこの解法を想定しておらず、データセットが甘かったせいで、やり方によっては通った。 また、サンプルが一意に定まる例しかなかったせいで類似の方法でWAとなった人が多かったかも.

  3. 想定解法 • 全探索 • next_permutationを使う(C++) ->9!通りの並びに対して前から3つずつ取ってセットかどうか判定する。 • 再帰的に探索 ->まだ使ってない3つを選んで、順次セットかどうか判定していく。

  4. 回答状況 • 正解数 29 人/ 35人 • 送信数 91 (内 WA 46) • 最速正解者 岩田陽一 (22分)

More Related