HAYBALE (SPOJ)

Правка en1, от iamskp, 2021-04-07 23:34:13

I was solving this problem from SPOJ : https://www.spoj.com/problems/HAYBALE/

I was able to solve this problem with arrays but there exists a solution with bitmasks.

My solution (Python): https://ideone.com/0exgTg

Can someone please tell me how can I solve this problem with the help of bitmasks.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский iamskp 2021-04-07 23:34:13 319 Initial revision (published)