2012-12-01から1ヶ月間の記事一覧

ボルダリング #2012inReview

今年の4~5月くらいにクライミングシューズ(スポルティバのコブラ)を買って、週1~2くらいのペースでジムに通ってた。 その甲斐あってか、体脂肪率が23%ぐらいから18%まで落ちた。体重は約7kg減。 よかったよかった。 ボルダリング自体の腕前は、4~5級の課…

Codeforces Round #156 (Div. 2)

http://www.codeforces.com/contest/255 A,B問題だけ。 A. Greg's Workout n = gets.chomp.to_i a = gets.chomp.split(" ").map{|n| n.to_i} chest = 0 biceps = 0 back = 0 0.step(n, 3) do |idx| chest += a[idx] if not a[idx].nil? biceps += a[idx + 1]…

Codeforces Round #154 (Div. 2)

http://www.codeforces.com/contest/253/ A,B問題だけ。 A. Boys and Girls 少年(B)と少女(G)の数がそれぞれ与えられる。 できるかぎり異性が隣合うようにしながら一列にならべる。 $stdin = File.open("input.txt") $stdout = File.open("output.txt", "w")…