2009-01-04から1日間の記事一覧

TopCoder SRM 416 DIV 1 Easy 練習

ビットいぢり。一番右から'01'があったら'10'に変えて、その場所より右の'1'を全部詰めてあげておわり。 using System; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; public cla…

TCHS09 Elimination Round 1

成績 Easy: 215.88 / 250 Medium: 477.44 / 500 Hard: 843.68 / 1000Room内3位、Division内47位。この調子で行けたら決勝まで残れるかもしれない。というか問題簡単すぎワロタwwwww去年の一回戦もここまで簡単じゃなかった記憶があるんだけどw 250 Sub…

はてなにやってきた

どうもこんにちは。

文字列あれこれ

部分文字列出現回数 in Python >>> 'PythonPythonF#PythonJPythonF#PythonPython'.count('Python') 6 in J +/'Python' E. 'PythonPythonF#PythonJPythonF#PythonPython' 6 接尾辞チェック in Python >>> 'Python'.endswith('thon') True >>> 'language J'.en…

TopCoder SRM 197 DIV 2 Hard 練習

1100点問題。俺の嫁である動的計画法を駆使しt(ry using System; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; public class QuickSums { int[,] dp; string s; int N; cons…

TopCoder SRM 277 DIV 1 Easy 練習

全部試してみてTriggerならカウンタ++というか最近Easyばっかやってる気がする。Mediumも解けるようにしないと。 using System; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; pu…