結果

問題 No.99 ジャンピング駒
ユーザー Rin
提出日時 2015-09-03 16:18:16
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 410 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 20,992 KB
最終ジャッジ日時 2024-07-18 21:54:28
合計ジャッジ時間 1,544 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (System.out.println x)
  (begin
    (display x)
    (newline)
  )
)

(let (
      (N (read))
     )
  (let loop(
            (foo (read))
            (Odd 0)
            (Even 0)
           )
    (if (eof-object? foo)
        (System.out.println (abs (- Odd Even)))
        (if (= (modulo foo 2) 0)
            (loop (read) Odd (+ Even 1))
            (loop (read) (+ Odd 1) Even)
        )
    )
  )
)
0