AtCoder Grand Contest 014

Submission #1268536

Source codeソースコード

(let* ((n (read))
      (m (read))
      (edges (loop repeat (- n 1) collect 0)))
  (loop for i from 1 to m
       (let ((a (read))
	     (b (read)))
	 (let* ((mi (min a b))
		(mx (max a b))
		(incr (loop for i from 1 to (- n 1)
			 collect (if (and (<= mi i) (< i mx))
	   (setf edges
		 (map 'list #'+ edges incr)))))
  (format t "~:[NO~;YES~]" (every #'evenp edges)))


Task問題 B - Unplanned Queries
User nameユーザ名 noorbeh
Created time投稿日時
Language言語 Common Lisp (SBCL 1.1.14)
Status状態 TLE
Score得点 0
Source lengthソースコード長 419 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Test case


Set name Score得点 / Max score Cases
Sample - sample1.txt,sample2.txt
All 0 / 500 sample1.txt,sample2.txt,in1.txt,in10.txt,in11.txt,in12.txt,in13.txt,in14.txt,in15.txt,in16.txt,in2.txt,in3.txt,in4.txt,in5.txt,in6.txt,in7.txt,in8.txt,in9.txt,sample1.txt,sample2.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
in1.txt TLE
in10.txt TLE
in11.txt TLE
in12.txt TLE
in13.txt TLE
in14.txt TLE
in15.txt AC 25 ms 6500 KB
in16.txt AC 24 ms 6504 KB
in2.txt TLE
in3.txt TLE
in4.txt TLE
in5.txt TLE
in6.txt TLE
in7.txt TLE
in8.txt TLE
in9.txt TLE
sample1.txt AC 25 ms 6496 KB
sample2.txt AC 25 ms 6496 KB