chainerで論理演算を学習してとく
参照:ほとんど同じ手順、ただしscikit-learnは不要、追加でpipでchainerを入れる https://gist.github.com/masayuki5160/6ab3006bff0e398b1c92ed0f9ded4aee
$ sudo pip install chainer
| import java.util.*; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int[] dishes = new int[5]; | |
| for (int i = 0; i < dishes.length; i++) { | |
| dishes[i] = sc.nextInt(); |
| <?php | |
| require_once __DIR__. '/fizzBuzz.php'; | |
| class testFizzBuzz extends PHPUnit_Framework_TestCase | |
| { | |
| private $fizzBuzz; | |
| public function setUp() | |
| { |
| $ docker pull php:5.6-apache | |
| $ docker run -p 80:80 -v /(ホストの任意のパス)/:/var/www/html --name php56 -d php:5.6-apache | |
| $ docker exec -ti php56 bash |
chainerで論理演算を学習してとく
参照:ほとんど同じ手順、ただしscikit-learnは不要、追加でpipでchainerを入れる https://gist.github.com/masayuki5160/6ab3006bff0e398b1c92ed0f9ded4aee
$ sudo pip install chainer
| # 見出し | |
| テスト見出しですよ | |
| ## 見出し2 | |
| テストその2の見出しですよ | |
| ### ほげ | |
| テストその3の見出しです | |
| - 箇条書き | |
| - 箇条書き |
| #/bin/sh | |
| echo $(date +%Y%m%d-%H:%M:%S) $(printf '%03d' $(expr `date +%N` / 1000000)) msec |
| -- setup | |
| https://www.vagrantup.com/ | |
| -- centos6.7 | |
| $ vagrant box add centos6.7 https://github.com/CommanderK5/packer-centos-template/releases/download/0.6.7/vagrant-centos-6.7.box | |
| $ vagrant init centos6.7 | |
| $ vagrant up | |
| -- centos7 | |
| $ vagrant init centos/7 |
| <?php | |
| $card_arr = array_fill(0, 100, 0);// カードを配列で用意(0:裏返し、1:) | |
| for($i = 1;$i <= 100;$i++){// 人が行うカードへの処理 | |
| $offset = $i; | |
| for($j = $i;$j <= 100;$j = $j + 1 + $offset){ | |
| if($card_arr[$j] > 0){ | |
| $card_arr[$j] = 0;// カードが表の時は裏にする |