In past div 2 this guy upload solutions on youtube , and again this time he uploads , please do something CF.
https://www.youtube.com/channel/UCIAiAwwbj9OLmbZehfc28OQ
B solution : https://pastebin.com/BExDVgPF
C solution : https://pastebin.com/1D0QeBgy