- http://chiraura.hhiro.net/shiritori/ を開きます。
- 「しりとりさせる単語集合」の欄に、「アイドル名一覧.txt」の内容を貼り付けます。「結果.txt」にある内容が得られます。
濁点・半濁点はないものとしてしりとりします。
| from multiprocessing.pool import Pool | |
| import multiprocessing as mp | |
| def display(val): | |
| print(f'{GLOBAL_VARIABLE}{val}') | |
| if __name__ == '__main__': | |
| GLOBAL_VARIABLE = 'test' | |
| # 並列処理のプロセスの立ち上げ方をspawnにする。 |
| #include <map> | |
| #include <iostream> | |
| #include <stdexcept> | |
| class MyClass{ | |
| public: | |
| typedef std::map<int, int> storage_type; | |
| private: | |
| storage_type value_; |
| PREFIX schema: <http://schema.org/> | |
| PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
| PREFIX imas: <https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#> | |
| PREFIX imasrdf: <https://sparql.crssnky.xyz/imasrdf/RDFs/detail/> | |
| PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
| PREFIX math: <http://www.w3.org/2005/xpath-functions/math#> | |
| PREFIX xsd: <https://www.w3.org/TR/xmlschema11-2/#> | |
| PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
| SELECT ?色 ?名前 ?声優 |
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| require 'text/hatena' | |
| require 'rexml/document' | |
| AUTHOR = "BlogAuthor" # 著者名を入力してください | |
| def check_node(node, expected_name) | |
| case node | |
| when REXML::Element |
| // 元ネタ:http://d.hatena.ne.jp/wasabiz/20110118/1295335821 | |
| // | |
| // 注意点: | |
| // ここで定義されているTCO_FUNCは、「末尾再帰で書かれた関数の引数が2つである場合」 | |
| // に限定された定義です。 | |
| // それ以上の場合は、別途マクロを定義しないとならないです。 | |
| // Boost.PPとかを使うと何とかなるのかな…? | |
| #ifndef _OPT_TAIL_RECURSION_H_ | |
| #define _OPT_TAIL_RECURSION_H_ |
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| strs = DATA.readlines | |
| strs.each{ |line| line.chomp!; line.encode('utf-8') } | |
| strs.uniq! | |
| strs.sort! | |
| width = strs.map{ |s| s.length }.max | |
| parent_end = [0] * width |
| #!/usr/bin/env ruby | |
| # *** Important notification *** | |
| # As xAuth is officially supported, we have to register | |
| # your application needing xAuth, via e-mail. | |
| # If not registered, 401 error will be returned. | |
| # http://apiwiki.twitter.com/Twitter-REST-API-Method:-oauth-access_token-for-xAuth | |
| # | |
| # (*** 重要な告知 *** | |
| # xAuthが公式にサポートされたのに伴い、xAuthの必要なアプリケーションは |
| #!/usr/bin/ruby | |
| # http://okajima.air-nifty.com/b/2010/01/post-abc6.html | |
| # 【2010.1.25追記】 | |
| # #{RUBYLIB}/matrix.rb のコードを修正しないと動かないかもしれません。 | |
| # http://redmine.ruby-lang.org/issues/show/560 | |
| require 'set' | |
| require 'matrix' |
濁点・半濁点はないものとしてしりとりします。
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| # 基準 | |
| # - プロデューサーは数えない | |
| # - ちひろさんは数える | |
| # - セリフのみの登場も数える | |
| require 'yaml' |