結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-29 10:56:26 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 5,000 ms |
| コード長 | 487 bytes |
| 記録 | |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 35,636 KB |
| 実行使用メモリ | 28,664 KB |
| 最終ジャッジ日時 | 2026-07-08 02:50:58 |
| 合計ジャッジ時間 | 2,105 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 08 JUL 2026 02:50:56 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.029
ソースコード
(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)