結果
問題 |
No.35 タイパー高橋
|
ユーザー |
|
提出日時 | 2025-03-29 10:56:26 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 18 ms / 5,000 ms |
コード長 | 487 bytes |
コンパイル時間 | 1,380 ms |
コンパイル使用メモリ | 30,816 KB |
実行使用メモリ | 26,124 KB |
最終ジャッジ日時 | 2025-03-29 10:56:28 |
合計ジャッジ時間 | 2,196 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 29 MAR 2025 10:56:25 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.051
ソースコード
(defvar N) (setq N (parse-integer (read-line))) (defvar TI) (defvar S) (defvar c) (defvar len) (defparameter OK 0) (defparameter NG 0) (loop for line = (read-line nil nil) while line do (setq line (read-from-string (concatenate 'string "(" line ")"))) (setq TI (nth 0 line)) (setq len (length (string (nth 1 line)))) (setq c (floor (* TI 12) 1000)) (setq OK (+ OK (min len c))) (setq NG (+ NG (- len (min len c)))) ) (format 't "~d ~d~%" OK NG)