Submission #24383711


Source Code Expand

gets
B = $<.map{|ln| ln.split.map(&:to_i) }.group_by(&:shift)
puts(B.all?{|_,b|
	t0 = 0
	next b.sort_by(&:last).all?{|s,t|
		t0<=s && t0=t
	}
}?'No':'Yes')

Submission Info

Submission Time
Task F - Double Booking
User ds14050
Language Ruby (2.7.1)
Score 7
Code Size 164 Byte
Status AC
Exec Time 269 ms
Memory 39220 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 7 / 7
Status
AC × 3
AC × 23
Set Name Test Cases
Sample 01_sample.txt, 02_sample.txt, 03_sample.txt
All 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_random.txt, 05_random.txt, 06_random.txt, 07_random.txt, 08_random.txt, 09_random.txt, 10_random.txt, 11_random.txt, 12_random.txt, 13_random.txt, 14_random.txt, 15_random.txt, 16_max.txt, 17_max.txt, 18_hand.txt, 19_hand.txt, 20_hand.txt, 21_hand.txt, 22_hand.txt, 23_hand.txt
Case Name Status Exec Time Memory
01_sample.txt AC 62 ms 14180 KiB
02_sample.txt AC 60 ms 14204 KiB
03_sample.txt AC 59 ms 14396 KiB
04_random.txt AC 65 ms 14248 KiB
05_random.txt AC 60 ms 14108 KiB
06_random.txt AC 163 ms 21840 KiB
07_random.txt AC 65 ms 14820 KiB
08_random.txt AC 60 ms 14104 KiB
09_random.txt AC 60 ms 14032 KiB
10_random.txt AC 63 ms 14244 KiB
11_random.txt AC 61 ms 14236 KiB
12_random.txt AC 64 ms 14284 KiB
13_random.txt AC 58 ms 14260 KiB
14_random.txt AC 81 ms 15772 KiB
15_random.txt AC 114 ms 19800 KiB
16_max.txt AC 269 ms 39220 KiB
17_max.txt AC 267 ms 38932 KiB
18_hand.txt AC 59 ms 14080 KiB
19_hand.txt AC 61 ms 14156 KiB
20_hand.txt AC 61 ms 14244 KiB
21_hand.txt AC 59 ms 13988 KiB
22_hand.txt AC 61 ms 14152 KiB
23_hand.txt AC 62 ms 14068 KiB