java
static int solveMeFirst(int a, int b) { return a + b; }clojure
(defn solveMeFirst [x y] (+ x y))여기서 특이한 점은 stdin, stdout 방법을적어놔야할 것 같다. 자바
Scanner in = new Scanner(System.in); int a = in.nextInt(); int b = in.nextInt(); int sum = solveMeFirst(a, b); System.out.println(sum);클로저
(def a (read-line)) (def b (read-line)) (println (solveMeFirst (Integer/parseInt a) (Integer/parseInt b)))
댓글 없음:
댓글 쓰기