該当する各社の対応欄に企業名を書いてください。備考があれば適宜カッコ書きしてください。
- 定時前に帰宅させてくれるホワイトな会社のりすとを気軽に作りたい
- 定時前に帰宅させてくれるホワイトな会社がホワイトアピールできる場があれば良いな
クレジットカード番号には法則があり、先頭6桁でカードの種類を識別、分類することができる。
詳細はISO/IEC 7812で規定されている。
ISO/IEC 7812 - Wikipedia https://ja.wikipedia.org/wiki/ISO/IEC_7812
先頭の6桁を銀行識別番号(Bank Identification Number、略称:BIN)ないしは発行者識別番号(Issuer Identification Number、略称:IIN)と呼び、この先頭6桁でカード発行会社(イシュア、issuer)が判るようになっている。
paizaオンラインハッカソン lite をPythonで解いてみた.
結果 は0.01秒.
単純に枝刈りしながら深さ優先探索するだけのコードだけど, あらかじめ単価の安い順にソートしておくのと, Solver.least_cost()
あたりの処理とで出来るかぎり浅いところで枝刈りされるようにしている.
とはいえ、このコードで TestCase7が0.01秒というのはちょっと速すぎる気がしないでもない.
# -*- coding:utf-8 -*-
北海道 | HOKKAIDO | hokkaido | |
---|---|---|---|
青森県 | AOMORI | aomori | |
岩手県 | IWATE | iwate | |
宮城県 | MIYAGI | miyagi | |
秋田県 | AKITA | akita | |
山形県 | YAMAGATA | yamagata | |
福島県 | FUKUSHIMA | fukushima | |
茨城県 | IBARAKI | ibaraki | |
栃木県 | TOCHIGI | tochigi | |
群馬県 | GUNMA | gunma |
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
require 'optparse' | |
begin | |
require 'aws/profile_parser' | |
rescue LoadError; end | |
def conv_unit size |
require 'randexp' | |
require 'faker' | |
require 'forgery' | |
I18n.enforce_available_locales = true | |
I18n.default_locale = :en | |
class Randgen | |
def self.rand_name(options = {}) | |
/#{Forgery::Basic.color}-#{Faker::Name.first_name}-\d{4}/.gen.downcase |
# bad | |
def compute_thing(thing) | |
if thing[:foo] | |
update_with_bar(thing) | |
if thing[:foo][:bar] | |
partial_compute(thing) | |
else | |
re_compute(thing) | |
end | |
end |
require 'tmpdir' | |
# Usage: | |
# add to ruhoh-site/plugins/publish/github.rb | |
# - Your GitHub remote must be setup properly but The command will try to walk you through it. | |
# - You must have a clean working directory to publish to GitHub pages since the hook is actually triggered by commits. | |
# | |
# $ cd ruhoh-site | |
# $ bundle exec ruhoh publish github | |
class Ruhoh |