夢追い人

"It takes a dreamer to make a dream come true."―Vincent Willem van Gogh

2011-09-10から1日間の記事一覧

Div.1Easy猫

MagicalSource やるだけ class MagicalSource { public: long long calculate( long long x ) { ll res = x; ll n = 0; for (int i=0; i<=12; i++) { n += (ll)pow(10, (double)i); if (x % n == 0) { res = x / n; } } return res; } };

じゃっかんきおくそうしつしたもんだいたち

2503 Trie木の練習のため、他人のコードをほぼてコピ。いや、木のところだけ。 struct trie{ trie *next[26]; char *val; trie() {for(int i=0; i<26; i++) next[i]=(trie*)0; val=(char*)0;} }; trie start; void add_node(char str[], char value[]) { tri…