This file contains 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
abstract class Process { | |
public abstract void run() throws ProcessFailure; | |
public Process and(final Process other) { | |
final Process self = this; | |
return new Process() { | |
public void run() throws ProcessFailure { | |
self.run(); | |
other.run(); | |
} |
This file contains 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
list = 1 : [x * 3 + y | x <- list, y <- [0,1]] | |
main = mapM_ print $ take 100 list |
This file contains 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
module Main where | |
(^..^) = QB | |
($^-^) = Mami | |
(@.@=) = Charlotte | |
(?) = App | |
main = print $ eval | |
(((^..^)?((((^..^)?(@.@=))?((($^-^)?((((^..^)?((((^..^) | |
?((((^..^)?((((^..^)?((((^..^)?(@.@=))?((($^-^)?((((^..^) |
This file contains 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
{-# LANGUAGE MultiParamTypeClasses, TypeFamilies #-} | |
import Data.List as L | |
import Data.Heap as H | |
import Control.Parallel | |
import Control.Parallel.Strategies | |
import Control.DeepSeq | |
This file contains 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
{- | |
■ プログラムの実行結果(参考 data0 + 解答 data1 data2) | |
data0.ans (priority queue): | |
192.343054 | |
35.179325 136.925993 | |
34.681261 135.509801 | |
34.538272 135.536512 | |
34.695124 135.197852 | |
data1.ans (priority queue): |