条件を満たす行を取り除く
Posted feedbacks - Emacs Lisp
1 2 3 4 5 6 7 8 9 10 11 | (defun remove-comments ()
(goto-char (point-min))
(while (re-search-forward "^#" nil t)
(delete-region (point-at-bol) (1+ (point-at-eol)))))
(defun test ()
(save-excursion
(set-buffer (find-file-noselect "10.input"))
(remove-comments)
(write-file "10.output")))
(test)
|


にしお
#3366()
Rating0/0=0.00
サンプル入力
サンプル出力[ reply ]