SlideShare une entreprise Scribd logo
1  sur  56
Télécharger pour lire hors ligne
TopCoder Open 2015
Round 2C in Tokyo
AtCoder & 国立情報学研究所
秋葉 拓哉 | [[iwi]]
1. FixPalindrome
2. ManhattanConstruction
3. YetAnotherCardGame
4. LongSeat
5. PopcountRobot
Spectator
R2C
Parallel
1. FixPalindrome
2. ManhattanConstruction
3. YetAnotherCardGame
4. LongSeat
5. PopcountRobot
[[iwi]]
rng_58
【問題①】
FixPalindrome
COBOL
COBOL
COBOC
COBOL
COBOC
COBOL
COBOC
COBOL COBOC
COBOL COBOC
COBOL COBOC
COBOL
COBOL
COBOC
COBOC
【問題②】
Manhattan
Construction
1 1 1 1
1
1
1
1 1 1 1
1 2
1
1
1 1 1 1
1 2 3
1
1
1 1 1 1
1 2 4
1
1
3
1 1 1 1
1 2 3 4
1 0
1
1 1 1 1
1 2 3 4
1 0 3 3
1 1 4 7
【問題③】
YetAnother
CardGame
①④⑥⑦③
①⑦①⑤⑦
Petr
Snuke
①④⑥⑦③
①⑦①⑤⑦
Petr
Snuke
①④⑥⑦③
①⑦①⑤⑦
①Petr
Snuke
④⑥⑦③
①⑦①⑤⑦
①Petr
Snuke
④⑥⑦③
①⑦①⑤⑦
①Petr
Snuke
④⑥⑦③
①⑦①⑤⑦
①Petr
Snuke
④⑥⑦③
⑦①⑤⑦
①Petr
Snuke
④⑥⑦③
⑦①⑤⑦
①Petr
Snuke
④⑥⑦
⑦①⑤⑦
①
③Petr
Snuke
④⑥⑦
⑦①⑤⑦
①
③Petr
Snuke
④⑥⑦③
⑦①⑤⑦
①Petr
Snuke
出しても食べても
カードは 1 枚減る
④⑥⑦③
⑦①⑤⑦
①Petr
Snuke
④⑥⑦③
⑦①⑤⑦
①Petr
Snuke
1枚ずつ減る
1枚ずつ減る
④⑥⑦③
①⑦①⑤⑦
①Petr
Snuke ?
④⑥⑦③
①⑦①⑤⑦
①Petr
Snuke ?
⑦
①⑦①
①③④⑤⑥
⑦Petr
Snuke
⑦
①⑦①
①③④⑤⑥
⑦Petr
Snuke
⑦
①⑦①
①③④⑤⑥
⑦Petr
Snuke
TCO15 Algorithm Round 2C 解説
TCO15 Algorithm Round 2C 解説
TCO15 Algorithm Round 2C 解説
TCO15 Algorithm Round 2C 解説
TCO15 Algorithm Round 2C 解説
TCO15 Algorithm Round 2C 解説
TCO15 Algorithm Round 2C 解説
TCO15 Algorithm Round 2C 解説

Contenu connexe

En vedette

平面グラフと交通ネットワークのアルゴリズム
平面グラフと交通ネットワークのアルゴリズム平面グラフと交通ネットワークのアルゴリズム
平面グラフと交通ネットワークのアルゴリズムTakuya Akiba
 
大規模ネットワークの性質と先端グラフアルゴリズム
大規模ネットワークの性質と先端グラフアルゴリズム大規模ネットワークの性質と先端グラフアルゴリズム
大規模ネットワークの性質と先端グラフアルゴリズムTakuya Akiba
 
プログラミングコンテストでのデータ構造 2 ~平衡二分探索木編~
プログラミングコンテストでのデータ構造 2 ~平衡二分探索木編~プログラミングコンテストでのデータ構造 2 ~平衡二分探索木編~
プログラミングコンテストでのデータ構造 2 ~平衡二分探索木編~Takuya Akiba
 
猫でも分かるVariational AutoEncoder
猫でも分かるVariational AutoEncoder猫でも分かるVariational AutoEncoder
猫でも分かるVariational AutoEncoderSho Tatsuno
 
プログラミングコンテストでの動的計画法
プログラミングコンテストでの動的計画法プログラミングコンテストでの動的計画法
プログラミングコンテストでの動的計画法Takuya Akiba
 
勉強か?趣味か?人生か?―プログラミングコンテストとは
勉強か?趣味か?人生か?―プログラミングコンテストとは勉強か?趣味か?人生か?―プログラミングコンテストとは
勉強か?趣味か?人生か?―プログラミングコンテストとはTakuya Akiba
 
プログラミングコンテストでのデータ構造
プログラミングコンテストでのデータ構造プログラミングコンテストでのデータ構造
プログラミングコンテストでのデータ構造Takuya Akiba
 
学位論文「ウェブ情報の信憑性分析に関する研究」
学位論文「ウェブ情報の信憑性分析に関する研究」学位論文「ウェブ情報の信憑性分析に関する研究」
学位論文「ウェブ情報の信憑性分析に関する研究」Yusuke Yamamoto
 
動的計画法入門(An introduction to Dynamic Programming)
動的計画法入門(An introduction to Dynamic Programming)動的計画法入門(An introduction to Dynamic Programming)
動的計画法入門(An introduction to Dynamic Programming)kakira9618
 
セキュリティを学ぼう~Ctfを添えて~
セキュリティを学ぼう~Ctfを添えて~セキュリティを学ぼう~Ctfを添えて~
セキュリティを学ぼう~Ctfを添えて~Takumi Ishibashi
 
論文輪読: Order-Embeddings of Images and Language
論文輪読: Order-Embeddings of Images and Language論文輪読: Order-Embeddings of Images and Language
論文輪読: Order-Embeddings of Images and Languagemmisono
 
論文輪読: Coordinated and Efficient Huge Page Management with Ingens
論文輪読: Coordinated and Efficient Huge Page Management with Ingens論文輪読: Coordinated and Efficient Huge Page Management with Ingens
論文輪読: Coordinated and Efficient Huge Page Management with Ingensmmisono
 
CV勉強会@関東 3巻3章4節 画像表現
CV勉強会@関東 3巻3章4節 画像表現CV勉強会@関東 3巻3章4節 画像表現
CV勉強会@関東 3巻3章4節 画像表現Yusuke Uchida
 
論文輪読: Data-Dependent Initializations of Convolutional Neural Networks / All Y...
論文輪読: Data-Dependent Initializations of Convolutional Neural Networks / All Y...論文輪読: Data-Dependent Initializations of Convolutional Neural Networks / All Y...
論文輪読: Data-Dependent Initializations of Convolutional Neural Networks / All Y...mmisono
 
Beliefs and Biases in Web Search (SIGIR'13 Best paper)読んだ
Beliefs and Biases in Web Search (SIGIR'13 Best paper)読んだBeliefs and Biases in Web Search (SIGIR'13 Best paper)読んだ
Beliefs and Biases in Web Search (SIGIR'13 Best paper)読んだYusuke Uchida
 
Image Retrieval with Fisher Vectors of Binary Features (MIRU'14)
Image Retrieval with Fisher Vectors of Binary Features (MIRU'14)Image Retrieval with Fisher Vectors of Binary Features (MIRU'14)
Image Retrieval with Fisher Vectors of Binary Features (MIRU'14)Yusuke Uchida
 
論文輪読: Generative Adversarial Text to Image Synthesis
論文輪読: Generative Adversarial Text to Image Synthesis論文輪読: Generative Adversarial Text to Image Synthesis
論文輪読: Generative Adversarial Text to Image Synthesismmisono
 
K-means hashing (CVPR'13) とハッシング周り
K-means hashing (CVPR'13) とハッシング周りK-means hashing (CVPR'13) とハッシング周り
K-means hashing (CVPR'13) とハッシング周りYusuke Uchida
 
論文輪読: Deep neural networks are easily fooled: High confidence predictions for...
論文輪読: Deep neural networks are easily fooled: High confidence predictions for...論文輪読: Deep neural networks are easily fooled: High confidence predictions for...
論文輪読: Deep neural networks are easily fooled: High confidence predictions for...mmisono
 

En vedette (20)

平面グラフと交通ネットワークのアルゴリズム
平面グラフと交通ネットワークのアルゴリズム平面グラフと交通ネットワークのアルゴリズム
平面グラフと交通ネットワークのアルゴリズム
 
大規模ネットワークの性質と先端グラフアルゴリズム
大規模ネットワークの性質と先端グラフアルゴリズム大規模ネットワークの性質と先端グラフアルゴリズム
大規模ネットワークの性質と先端グラフアルゴリズム
 
プログラミングコンテストでのデータ構造 2 ~平衡二分探索木編~
プログラミングコンテストでのデータ構造 2 ~平衡二分探索木編~プログラミングコンテストでのデータ構造 2 ~平衡二分探索木編~
プログラミングコンテストでのデータ構造 2 ~平衡二分探索木編~
 
猫でも分かるVariational AutoEncoder
猫でも分かるVariational AutoEncoder猫でも分かるVariational AutoEncoder
猫でも分かるVariational AutoEncoder
 
プログラミングコンテストでの動的計画法
プログラミングコンテストでの動的計画法プログラミングコンテストでの動的計画法
プログラミングコンテストでの動的計画法
 
勉強か?趣味か?人生か?―プログラミングコンテストとは
勉強か?趣味か?人生か?―プログラミングコンテストとは勉強か?趣味か?人生か?―プログラミングコンテストとは
勉強か?趣味か?人生か?―プログラミングコンテストとは
 
プログラミングコンテストでのデータ構造
プログラミングコンテストでのデータ構造プログラミングコンテストでのデータ構造
プログラミングコンテストでのデータ構造
 
学位論文「ウェブ情報の信憑性分析に関する研究」
学位論文「ウェブ情報の信憑性分析に関する研究」学位論文「ウェブ情報の信憑性分析に関する研究」
学位論文「ウェブ情報の信憑性分析に関する研究」
 
動的計画法入門(An introduction to Dynamic Programming)
動的計画法入門(An introduction to Dynamic Programming)動的計画法入門(An introduction to Dynamic Programming)
動的計画法入門(An introduction to Dynamic Programming)
 
セキュリティを学ぼう~Ctfを添えて~
セキュリティを学ぼう~Ctfを添えて~セキュリティを学ぼう~Ctfを添えて~
セキュリティを学ぼう~Ctfを添えて~
 
論文輪読: Order-Embeddings of Images and Language
論文輪読: Order-Embeddings of Images and Language論文輪読: Order-Embeddings of Images and Language
論文輪読: Order-Embeddings of Images and Language
 
論文輪読: Coordinated and Efficient Huge Page Management with Ingens
論文輪読: Coordinated and Efficient Huge Page Management with Ingens論文輪読: Coordinated and Efficient Huge Page Management with Ingens
論文輪読: Coordinated and Efficient Huge Page Management with Ingens
 
CV勉強会@関東 3巻3章4節 画像表現
CV勉強会@関東 3巻3章4節 画像表現CV勉強会@関東 3巻3章4節 画像表現
CV勉強会@関東 3巻3章4節 画像表現
 
論文輪読: Data-Dependent Initializations of Convolutional Neural Networks / All Y...
論文輪読: Data-Dependent Initializations of Convolutional Neural Networks / All Y...論文輪読: Data-Dependent Initializations of Convolutional Neural Networks / All Y...
論文輪読: Data-Dependent Initializations of Convolutional Neural Networks / All Y...
 
全文検索入門
全文検索入門全文検索入門
全文検索入門
 
Beliefs and Biases in Web Search (SIGIR'13 Best paper)読んだ
Beliefs and Biases in Web Search (SIGIR'13 Best paper)読んだBeliefs and Biases in Web Search (SIGIR'13 Best paper)読んだ
Beliefs and Biases in Web Search (SIGIR'13 Best paper)読んだ
 
Image Retrieval with Fisher Vectors of Binary Features (MIRU'14)
Image Retrieval with Fisher Vectors of Binary Features (MIRU'14)Image Retrieval with Fisher Vectors of Binary Features (MIRU'14)
Image Retrieval with Fisher Vectors of Binary Features (MIRU'14)
 
論文輪読: Generative Adversarial Text to Image Synthesis
論文輪読: Generative Adversarial Text to Image Synthesis論文輪読: Generative Adversarial Text to Image Synthesis
論文輪読: Generative Adversarial Text to Image Synthesis
 
K-means hashing (CVPR'13) とハッシング周り
K-means hashing (CVPR'13) とハッシング周りK-means hashing (CVPR'13) とハッシング周り
K-means hashing (CVPR'13) とハッシング周り
 
論文輪読: Deep neural networks are easily fooled: High confidence predictions for...
論文輪読: Deep neural networks are easily fooled: High confidence predictions for...論文輪読: Deep neural networks are easily fooled: High confidence predictions for...
論文輪読: Deep neural networks are easily fooled: High confidence predictions for...
 

TCO15 Algorithm Round 2C 解説