Skip to content

Instantly share code, notes, and snippets.

@boxp
Created October 28, 2013 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boxp/7195785 to your computer and use it in GitHub Desktop.
Save boxp/7195785 to your computer and use it in GitHub Desktop.
ABC#2 1問目
(ns atcoder.core
(:use [clojure.string :only (join split split-lines)]))
; don't fix me
(defn gen-args
[input]
(split-lines input))
; start code section
(defn main
[args]
(let [input (map #(js/parseInt % 10) (split (first args) " "))]
(.log js/console
(apply max input))))
; don't fix me
(defn ^:export debug
[]
(main
(gen-args
(.. js/document
(getElementById "input")
-value))))
; don't fix me
(set! *main-cli-fn*
(main
(gen-args
(.. (js/require "fs")
(readFileSync "/dev/stdin" "utf8")))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment