The Stones
金庫のある部屋を出た後、あなたは地下牢に向かいました。 そこで見たものによりあなたの楽観は少々失われました。 二つの骸骨が地下牢の入り口すぐ後ろに横たわっていたのです。 その様子から彼らがトレジャーハンターであったことが分かります。 骨に張り付いた色あせた衣類から察するに多くの年月が経過しているようです。 しかしなぜ彼らは死んだのでしょうか?
「カチ...」 かすかな音がして地下牢のドアが閉まりました。 あなたはすぐに駆け出しましたが遅すぎました。 無論、鍵穴は無くドアを開けるための手掛かりも他にありません。 あなたはドアを蹴り飛ばしましたが頑丈過ぎました。 もし餓死して二体の骸骨の仲間入りをしたくなければ脱出する方法を見つける他ありません。 おそらく骸骨たちのそばに何か使えるものが見つかるでしょう。 近づいて詳しく調べてみるべきです。
骸骨に近づくと何処からともなく声が聞こえてきました。 「...ゲームを...終わらせよ...」 三つほど考えられます: だれかこの城に生存者がいる、 幽霊が現れた、 あなたが正気を失いつつありその初期症状としての幻聴。 どれも考えたくないものです。 しかし引き返す方法がありません。 ゲームを終わらせてハイパーキュープの探索を続けるのです。
それは二人のプレイヤーが山から交互に 1 から 3 の任意の数の石を取っていくあなたが良く知っているゲームに似ています。
この問題を少し一般化しましょう。
両プレイヤーが 1 から 3 の任意の数ではなく、k1, k2 ... km 個の石を取れることにします。
我々の関心は両プレイヤーが最善を尽くした場合にどちらが常に勝利するかです。
...
ゲームの開始時に山にある石の数と手番に取ることのできる石の数が入力値です。
例 - (10, [1, 2, 3])
もし山にある石の数が自分の番で取れる最小の石の数と同じか少ない場合にそのプレイヤーは敗北します。
CheckiO Extensions allow you to use local files to solve missions. More info in a blog post.
In order to install CheckiO client you'll need installed Python (version at least 3.8)
Install CheckiO Client first:
pip3 install checkio_client
Configure your tool
checkio --domain=py config --key=
Sync solutions into your local folder
checkio sync
(in beta testing) Launch local server so your browser can use it and sync solution between local file end extension on the fly. (doesn't work for safari)
checkio serv -d
Alternatevly, you can install Chrome extension or FF addon
checkio install-plugin
checkio install-plugin --ff
checkio install-plugin --chromium
Read more here about other functionality that the checkio client provides. Feel free to submit an issue in case of any difficulties.
Welcome to Pair Programming! Engage in real-time collaboration on coding projects by starting a session and sharing the provided unique URL with friends or colleagues. This feature is perfect for joint project development, debugging, or learning new skills together. Simply click 'Start Session' to begin your collaborative coding journey!
You are trying to join a pair programming session that has not started yet.
Please wait for the session creator to join.
It looks like the creator of the pair programming session closed the editor window.
It might happen accidentally, so that you can wait for reconnection.