はまやんはまやんはまやん

hamayanhamayan's blog

2019-10-08から1日間の記事一覧

Yoppy's FriendShip [WASEDAJITSUGYO_SCIENCECLUB_FESTIVAL_CONTEST2019 G]

https://www.hackerrank.com/contests/wasedajitsugyo-scienceclub-festival-contest2019/challenges/yoppys-frendship 解説 https://www.hackerrank.com/contests/wasedajitsugyo-scienceclub-festival-contest2019/challenges/yoppys-frendship/submission…

YoppinWork [WASEDAJITSUGYO_SCIENCECLUB_FESTIVAL_CONTEST2019 B]

前提知識 区間スケジューリング問題 解説 https://www.hackerrank.com/contests/wasedajitsugyo-scienceclub-festival-contest2019/challenges/yoppinwork/submissions/code/1316764099 この問題は、区間スケジューリング問題と呼ばれるものである。 区間ス…

YoppinParty [WASEDAJITSUGYO_SCIENCECLUB_FESTIVAL_CONTEST2019 F]

https://www.hackerrank.com/contests/wasedajitsugyo-scienceclub-festival-contest2019/challenges/yoppinparty 解説 https://www.hackerrank.com/contests/wasedajitsugyo-scienceclub-festival-contest2019/challenges/yoppinparty/submissions/code/131…

Soujitsu Query [WASEDAJITSUGYO_SCIENCECLUB_FESTIVAL_CONTEST2019 C]

解説 https://www.hackerrank.com/contests/wasedajitsugyo-scienceclub-festival-contest2019/challenges/soujitsu-query/submissions/code/1316764213 集合に含まれる数を保持したsetも持ちながら2番目の数を特定しよう。 要素の個数はmapで持っておけばい…

TeamAyutaya [WASEDAJITSUGYO_SCIENCECLUB_FESTIVAL_CONTEST2019 A]

解説 https://www.hackerrank.com/contests/wasedajitsugyo-scienceclub-festival-contest2019/challenges/team-ayutaya1/submissions/code/1316764060 XがN以上であればYesであり、そうでないならNoである。 int N, X; //---------------------------------…

Number saying game [WASEDAJITSUGYO_SCIENCECLUB_FESTIVAL_CONTEST2019 D]

前提知識 Grundy数 解説 https://www.hackerrank.com/contests/wasedajitsugyo-scienceclub-festival-contest2019/challenges/number-saying-game/submissions/code/1316764352 Nim派生問題感がある。 だが、Nimと違うのが最後の数を言ったほうが負けという…

Cut the sequence into three [WASEDAJITSUGYO_SCIENCECLUB_FESTIVAL_CONTEST2019 E]

https://www.hackerrank.com/contests/wasedajitsugyo-scienceclub-festival-contest2019/challenges/cut-the-sequence-into-three 解説 https://www.hackerrank.com/contests/wasedajitsugyo-scienceclub-festival-contest2019/challenges/cut-the-sequence…