2015-12-27から1日間の記事一覧

Codeforces Round #337 (Div. 2)

Codeforcesは2回目の参加。 A. Pasha and Stick 問題概要 Pasha has a wooden stick of some positive integer length n. He wants to perform exactly three cuts to get four parts of the stick. Each part must have some positive integer length and t…

AOJ0016:Treasure Hunt

AOJ

英語の勉強で発音の問題をやっていたら、発音以前に単語が分からない。そんな辛さの中の息抜きで1問。 問題概要 (0,0)をy軸正の向きでスタートして、移動と方向転換を繰り返し、最終的にいる座標を求める問題。 Treasure Hunt | Aizu Online Judge 解法 素直…

SRM677 Round1 Div.2

一応SRMは今年の3月に始めたのですが、基本的に深夜に行われていたり、学校にいる最中に行われていて中々参加が難しかったのですが、冬休みになって深夜の参加に挑戦してみました。 Easy PalindromePrime 問題概要 A positive integer is called a prime if …