2009-12-02から1日間の記事一覧

SRM420 DIV2 Level.2

パッと見てBFSだとわかるし、これぐらいの問題はすぐに解けないとだめだよな・・・。 結構時間かかってしまった。 using System; using System.Collections.Generic; using System.Text; public class Point { public int X; public int Y; public int D; pu…

SRM417 DIV2 Level.1

今日も練習。 Revese(Reverse(x) + Revese(y)) これを解くだけ。 using System; using System.Collections.Generic; using System.Text; public class ReversedSum { int reverse(int a) { int ret = 0; while (true) { ret += a % 10; if (a >= 10) { ret *…