Submission #51702526


Source Code Expand

N = gets.to_i
a,b,c,d = $<.read.split.map{_1.to_i-1}
a,b = b,a if b<a
c,d = d,c if d<c
a,b,c,d = c,d,a,b if c<a
p(b<=c||d<=b ? 3 : 4)

Submission Info

Submission Time
Task B - Cutting Circle
User ds14050
Language Ruby (ruby 3.2.2)
Score 0
Code Size 140 Byte
Status WA
Exec Time 123 ms
Memory 17240 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 3
AC × 32
WA × 2
Set Name Test Cases
Sample example0.txt, example1.txt, example2.txt
All example0.txt, example1.txt, example2.txt, random0.txt, random1.txt, random10.txt, random11.txt, random12.txt, random13.txt, random14.txt, random15.txt, random16.txt, random17.txt, random18.txt, random19.txt, random2.txt, random20.txt, random21.txt, random22.txt, random3.txt, random4.txt, random5.txt, random6.txt, random7.txt, random8.txt, random9.txt, same0.txt, same1.txt, same2.txt, same3.txt, same4.txt, same5.txt, same6.txt, same7.txt
Case Name Status Exec Time Memory
example0.txt AC 123 ms 17212 KiB
example1.txt AC 42 ms 17112 KiB
example2.txt AC 42 ms 17076 KiB
random0.txt AC 42 ms 17088 KiB
random1.txt AC 42 ms 17152 KiB
random10.txt AC 41 ms 17148 KiB
random11.txt AC 42 ms 17172 KiB
random12.txt AC 42 ms 17112 KiB
random13.txt AC 42 ms 17040 KiB
random14.txt AC 43 ms 17100 KiB
random15.txt AC 43 ms 17240 KiB
random16.txt AC 43 ms 17192 KiB
random17.txt AC 42 ms 17024 KiB
random18.txt AC 43 ms 17076 KiB
random19.txt AC 42 ms 16920 KiB
random2.txt AC 43 ms 16900 KiB
random20.txt AC 42 ms 17232 KiB
random21.txt AC 43 ms 17152 KiB
random22.txt AC 42 ms 16820 KiB
random3.txt AC 43 ms 16992 KiB
random4.txt AC 43 ms 17032 KiB
random5.txt AC 42 ms 17180 KiB
random6.txt AC 43 ms 17116 KiB
random7.txt AC 42 ms 17192 KiB
random8.txt AC 42 ms 17132 KiB
random9.txt AC 42 ms 17220 KiB
same0.txt AC 42 ms 17184 KiB
same1.txt AC 43 ms 17196 KiB
same2.txt WA 42 ms 16948 KiB
same3.txt WA 42 ms 17196 KiB
same4.txt AC 42 ms 17068 KiB
same5.txt AC 42 ms 17144 KiB
same6.txt AC 42 ms 17108 KiB
same7.txt AC 42 ms 17192 KiB