2015-07-22から1日間の記事一覧
競技プログラミングをする上で,短く書く技能は必須. そこでわかりやすい表記かつ短くするために,C++のテンプレを書かなきゃ… いけませんね…とりあえずはフォロワーさんのものを参考にします…競プロonC++のテンプレ - はっぴぃ☆わぁるどishizu774.hatenabl…
これをC++で解き直した.What is the string made of? - 水面下の夢yumechi0525.hatenablog.com先にコード貼っとく,出来はひどい, #include <iostream> #include <map> using namespace std; int main() { map<char, int> hash; // entry hash['0'] = 6; hash['1'] = 2; hash['2'] = </char,></map></iostream>…
問題 What is the string made of? | Solve programming problems on HackerEarth 回答 Submission (2169459) for What is the string made of? | HackerEarthデジタル数字で使うマッチの数を数えましょう… みたいな感じの問題. たとえば0なら,6本*1 -- …
Roy and Profile Picture** 問題Roy and Profile Picture | Solve programming problems on HackerEarth 回答 Submission (2166317) for Roy and Profile Picture | HackerEarth問題文より, [1] If any of the width or height is less than L, user is pro…