Submission #51755274


Source Code Expand

(N,M,K),*E = $<.map{|ln| ln.split.map(&:to_i) }
puts(K%2<1||[0,2].index(E.flatten.tally.values.count{0<_1%2})? 'Yes' : 'No')

Submission Info

Submission Time
Task E - Thin Ice
User ds14050
Language Ruby (ruby 3.2.2)
Score 300
Code Size 127 Byte
Status AC
Exec Time 291 ms
Memory 45916 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 42
Set Name Test Cases
Sample example0.txt, example1.txt
All example0.txt, example1.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, random23.txt, random24.txt, random25.txt, random26.txt, random27.txt, random28.txt, random29.txt, random3.txt, random30.txt, random31.txt, random32.txt, random33.txt, random34.txt, random35.txt, random36.txt, random37.txt, random38.txt, random39.txt, random4.txt, random5.txt, random6.txt, random7.txt, random8.txt, random9.txt
Case Name Status Exec Time Memory
example0.txt AC 42 ms 17216 KiB
example1.txt AC 43 ms 17316 KiB
random0.txt AC 122 ms 24516 KiB
random1.txt AC 281 ms 45792 KiB
random10.txt AC 255 ms 35712 KiB
random11.txt AC 288 ms 41576 KiB
random12.txt AC 220 ms 34884 KiB
random13.txt AC 291 ms 45916 KiB
random14.txt AC 283 ms 45240 KiB
random15.txt AC 113 ms 25196 KiB
random16.txt AC 230 ms 40136 KiB
random17.txt AC 270 ms 38668 KiB
random18.txt AC 196 ms 32236 KiB
random19.txt AC 262 ms 36688 KiB
random2.txt AC 226 ms 35268 KiB
random20.txt AC 186 ms 29544 KiB
random21.txt AC 281 ms 40636 KiB
random22.txt AC 258 ms 33756 KiB
random23.txt AC 138 ms 25820 KiB
random24.txt AC 237 ms 35832 KiB
random25.txt AC 211 ms 34984 KiB
random26.txt AC 178 ms 31172 KiB
random27.txt AC 289 ms 43984 KiB
random28.txt AC 228 ms 31880 KiB
random29.txt AC 241 ms 36012 KiB
random3.txt AC 67 ms 19160 KiB
random30.txt AC 262 ms 40516 KiB
random31.txt AC 240 ms 33116 KiB
random32.txt AC 210 ms 29012 KiB
random33.txt AC 195 ms 28224 KiB
random34.txt AC 102 ms 22196 KiB
random35.txt AC 188 ms 28184 KiB
random36.txt AC 181 ms 28124 KiB
random37.txt AC 232 ms 33068 KiB
random38.txt AC 172 ms 28168 KiB
random39.txt AC 115 ms 22872 KiB
random4.txt AC 281 ms 45532 KiB
random5.txt AC 134 ms 26036 KiB
random6.txt AC 236 ms 36400 KiB
random7.txt AC 160 ms 28532 KiB
random8.txt AC 233 ms 35796 KiB
random9.txt AC 189 ms 30416 KiB