Skip to content

fhiyo/aoj_haskell_training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AOJの問題をHaskellで解く

AOJのHaskellの問題を解くための環境.

構成

.
├── README.md
├── hs.sh
├── src
│   ├── 0000
│   │   └── 0000.hs
│   ├── 0001
│   │   └── 0001.hs
│   └── 0002
│       └── 0002.hs
└── test
    ├── 0000
    │   ├── input
    │   │   └── 0.txt
    │   └── output
    │       └── 0.txt
    ├── 0001
    │   ├── input
    │   │   ├── 1.txt
    │   │   └── 2.txt
    │   └── output
    │       ├── 1.txt
    │       └── 2.txt
    └── 0002
        ├── input
        │   └── 1.txt
        └── output
            └── 1.txt

サイクル

  1. 解きたいAOJの問題を決める
  2. ./hs.sh --make-env <問題番号>
  3. test/<問題番号>/{input,output}/ の下に同じファイル名で入力と出力のファイルを用意する (test用の入力/出力値) (複数テストケースを置ける)
  4. vim src/<問題番号>/<問題番号>.hsでソースコードを書く
  5. ./hs.sh --test <問題番号>でテスト
  6. テストをPassしたらコードをAOJに提出する

その他

  • ./hs.sh --lint <問題番号>でhlintを使ったコーディングチェックをする
  • ./hs.sh --cleanでビルド時に生成したファイルを削除
  • ./hs.sh --copy <問題番号>で書いたコードをクリップボードにコピー (Macのみ.pycopyを使用)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published