![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
今日はPythonの輪読会です~ 「Pythonではじめるアルゴリズム入門」 #ノンプロ研 #Python輪読会 pic.twitter.com/1eauGwhOp2
2023-10-22 20:56:45![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
そして21時から開催だと夕飯ゆっくり食べれて、とてもありがたい・・・w 今日は野菜タップリ水餃子w #ノンプロ研 #Python輪読会
2023-10-22 21:00:10![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
最近並び替えたもの ってなんやねん #ノンプロ研 #Python輪読会
2023-10-22 21:05:21![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
そういえば、お知らせコーナーのスライド並び替えた! #ノンプロ研 #Python輪読会
2023-10-22 21:07:17![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
トップバッターhagyさん 8クイーン問題 #ノンプロ研 #Python輪読会
2023-10-22 21:10:15![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
クイーンはチェスの駒です 縦横斜め全部いくらでも動けるという最強キャラです #ノンプロ研 #Python輪読会
2023-10-22 21:11:13![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
組み合わせの数を制限するのがポイント 縦横同じ行・列には絶対に来ないので、それだけでだいぶ制限できる #ノンプロ研 #Python輪読会
2023-10-22 21:11:53![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
縦横の判定は簡単 斜めの判定のアルゴリズムがポイント #ノンプロ研 #Python輪読会
2023-10-22 21:12:30![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
enumerateだ 個人的にはenumerateお気に入りの関数です~ #ノンプロ研 #Python輪読会
2023-10-22 21:13:24![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
今回の問題、ほぼほぼ再帰処理使う感じ #ノンプロ研 #Python輪読会
2023-10-22 21:15:52![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
最初の1つは好きな場所に置ける #ノンプロ研 #Python輪読会
2023-10-22 21:16:11![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
途中の結果を表示させるのわかりやすい ってかこの本のコード、基本的には途中結果を出さないので、動作を理解するために自分でprint文などで表示させてあげる必要があります #ノンプロ研 #Python輪読会
2023-10-22 21:17:19![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
盤面の数を増やすと、指数関数的に処理時間が増える 一般的なPCでは13クイーンくらいが限界? #ノンプロ研 #Python輪読会
2023-10-22 21:19:22![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
深さ優先探索に近いアルゴリズム 行けるところまで行ってダメなら戻る感じ #ノンプロ研 #Python輪読会
2023-10-22 21:21:18![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
力任せ判定だと全通りやるので大変 #ノンプロ研 #Python輪読会
2023-10-22 21:21:37