結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-12 17:00:23 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 87 ms / 5,000 ms |
| コード長 | 286 bytes |
| コンパイル時間 | 590 ms |
| コンパイル使用メモリ | 28,668 KB |
| 実行使用メモリ | 40,432 KB |
| 最終ジャッジ日時 | 2025-04-12 17:00:25 |
| 合計ジャッジ時間 | 2,722 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 12 APR 2025 05:00:23 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.197
ソースコード
(defvar N)
(defvar x)
(setq n (parse-integer (read-line)))
(setq x (read-from-string (concatenate 'string "(" (read-line) ")")))
(defparameter gu 0)
(defparameter ki 0)
(loop for i in x do
(if (evenp i) (incf gu) (incf ki))
)
;(print gu)
;(print ki)
(format t "~d~%" (abs (- gu ki)))