2011-02-21から1日間の記事一覧

SRM303 div2 hard

「やるだけ=バグ死」の敗北の方程式を何とかしたい …で、やるだけ。全探索で間に合う。 #include <string> #include <algorithm> #include <sstream> #include <vector> #include <iostream> using namespace std; class PrimePalindromic { public: int count(int A, int B) { int ans=0; for(int num=A;n</iostream></vector></sstream></algorithm></string>…

SRM348 div2 hard

メモ化再帰 "An increasing subsequence of a is maximal if unerasing any of the erased elements of a does not result in a longer increasing subsequence" ていうのは消したものを追加しても追加前より長い"increasing subsequence" になることはない…