Submission #51702670


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||a==c ? 3 : 4)

Submission Info

Submission Time
Task B - Cutting Circle
User ds14050
Language Ruby (ruby 3.2.2)
Score 100
Code Size 146 Byte
Status AC
Exec Time 51 ms
Memory 17328 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 34
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 49 ms 17152 KiB
example1.txt AC 49 ms 17272 KiB
example2.txt AC 51 ms 17220 KiB
random0.txt AC 50 ms 17160 KiB
random1.txt AC 50 ms 17272 KiB
random10.txt AC 50 ms 17028 KiB
random11.txt AC 51 ms 17328 KiB
random12.txt AC 49 ms 17056 KiB
random13.txt AC 48 ms 17056 KiB
random14.txt AC 47 ms 17156 KiB
random15.txt AC 47 ms 16772 KiB
random16.txt AC 47 ms 17120 KiB
random17.txt AC 47 ms 17260 KiB
random18.txt AC 47 ms 17216 KiB
random19.txt AC 48 ms 17316 KiB
random2.txt AC 49 ms 17044 KiB
random20.txt AC 48 ms 17236 KiB
random21.txt AC 47 ms 16980 KiB
random22.txt AC 47 ms 16900 KiB
random3.txt AC 47 ms 17068 KiB
random4.txt AC 48 ms 17092 KiB
random5.txt AC 49 ms 17220 KiB
random6.txt AC 47 ms 17216 KiB
random7.txt AC 48 ms 17220 KiB
random8.txt AC 48 ms 17084 KiB
random9.txt AC 48 ms 16948 KiB
same0.txt AC 48 ms 17172 KiB
same1.txt AC 47 ms 17128 KiB
same2.txt AC 47 ms 17140 KiB
same3.txt AC 48 ms 17052 KiB
same4.txt AC 48 ms 17148 KiB
same5.txt AC 48 ms 17128 KiB
same6.txt AC 48 ms 17164 KiB
same7.txt AC 47 ms 16972 KiB