タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

ネタに関するharabuのブックマーク (1)

  • RubyでもSTAP細胞を探したい - Qiita

    シダに乗り遅れたのでとりあえずRubyで かぶってませんように 回数数えてないとレギュレーション違反かもしれないのでカウンタ追加した atoz = ("A".."Z").to_a counter = 0 loop do cell = "" 4.times { cell += atoz.sample } counter += 1 print cell+"細胞" if cell == "STAP" puts "#{counter}回目で陽性かくにん!" puts "よかった☆" break end end Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou c

    RubyでもSTAP細胞を探したい - Qiita
  • 1