Created
October 28, 2013 12:10
-
-
Save boxp/7195785 to your computer and use it in GitHub Desktop.
ABC#2 1問目
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
(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