This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 52 | |
| bab | |
| cac | |
| dad | |
| eae | |
| faf | |
| gag | |
| hah | |
| iai | |
| jaj |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env runghc | |
| -- http://mtsmfm.github.io/2016/12/03/doukaku-e10.html | |
| -- http://qiita.com/mtsmfm/items/8a78b895910a89e3012d | |
| import System.IO (isEOF,hFlush,stdout) | |
| rec x o l ('X':xs) = rec (x+1) (o+l) 0 xs | |
| rec x o l ('O':xs) = rec x o (l+1) xs | |
| rec x o l [] = ((2^l)-1)*4*2^o + case x of | |
| 0 -> 0 | |
| 1 -> 5+(if o==0 then 0 else 5^o) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =begin | |
| T=[ | |
| [[0,0,1,1],[0,0,3,0],[0,-1,2,2],[0,-1,1,4],[1,0,3,3]], | |
| [[0,0,2,1],[0,0,0,0],[1,0,3,2],[1,0,2,4],[0,1,0,3]], | |
| [[0,0,3,1],[0,0,1,0],[0,1,0,2],[0,1,3,4],[-1,0,1,3]], | |
| [[0,0,0,1],[0,0,2,0],[-1,0,1,2],[-1,0,0,4],[0,-1,2,3]], | |
| ] | |
| =end | |
| D=[[0,-1],[1,0],[0,1],[-1,0]] | |
| T=4.times.map{|i| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| #http://mtsmfm.github.io/2016/10/01/doukaku-e08.html | |
| #http://qiita.com/mtsmfm/items/94ebd353fa3b7e608f68 | |
| H=W=19 | |
| while gets | |
| # 要素が0..18の数値2つ(x座標,y座標)からなる配列 | |
| a=$_.chomp.split(',').map{|e|e.scan(/[a-z]\d+/).map{|f|[f[0].ord-97,f[1..-1].to_i-1]}.sort} | |
| h=a.map{|e|Hash[*e.flat_map{|(x,y)|[x+y*W,1]}]} | |
| puts 2.times.map{|i| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // async | |
| // 5 5: 0.08s | |
| // 3 9: 1.47s | |
| // 5 6: 15.53s | |
| // 4 8: 83.18s | |
| // 6 6: 772.15s | |
| #include <vector> | |
| #include <algorithm> | |
| #include <future> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env powershell | |
| #http://qiita.com/Nabetani/items/23ebddb44f0234e7fb15 | |
| #http://nabetani.sakura.ne.jp/hena/ord28spirwa/ | |
| $dir="ESWN" | |
| while(1){ | |
| $line=[Console]::ReadLine() | |
| if($line.length -eq 0){break} | |
| $a=$line.Split(":") | |
| $b=$a[0].Split(",") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // single(tlstをメモ化する前の計測なので時間多めですが、大した差ではないはず) | |
| // 5 5: 12 0.72s | |
| // 3 9: 21 9.72s | |
| // 5 6: 23 100.38s | |
| // 4 8: 22 396.15s | |
| // 6 6: 22 5996.84s | |
| // openmp | |
| // 5 5: 0.06s | |
| // 3 9: 0.83s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| patch :p0 do | |
| url 'https://raw.githubusercontent.com/cielavenir/homebrew-ciel/master/patch/io.patch' | |
| sha256 '62489be25589fff7e25c0f82775a36950d36c1ff691a07cb2ba85efc497e62dd' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Homebrew build logs for homebrew/science/arpack on macOS 10.12 | |
| Build date: 2016-09-22 01:24:43 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Homebrew build logs for homebrew/science/arpack on macOS 10.12 | |
| Build date: 2016-09-22 01:24:43 |