0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PeerCast プログラミング配信Advent Calendar 2018

Day 13

【もげぞうβ】atcoder beginner contest002をやる

Posted at

PeerCast プログラミング配信 Advent Calendar 2018 12/13

はい、もげぞうβです。
atcoder beginner contest002をやりました。

  • A問題
(defun abc002a ()
  (let ((x (read))
	    (y (read)))
    (if (>= x y)
	    (format t "~d~%" x)
	    (format t "~d~%" y))))
  • B問題
(defun abc002b ()
  (let ((w (read-line)))
    (loop for i across "aiueo"
	      do (setf w (remove i w))
    (format t "~a~%" w)))
  • C問題
(defun abc002c ()
  (let ((a (read)) (b (read)) (c (read))
	    (d (read)) (e (read)) (f (read)))
    (format t "~d~%" (/ (abs (- (* (- c a) (- f b)) (* (- e a) (- d b)))) 2.0))))
  • D問題
    時間切れ
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?