Codeforces will be possibly unavailable in the period between Sep. 19, 19:00 (UTC) and Sep. 19, 21:00 (UTC) because of maintenance. ×

sakaasd's blog

By sakaasd, history, 7 weeks ago, In English

Hey guys, can anyone help me with this problem https://codeforces.com/contest/79/problem/B (Colorful field).

PS.I read editorial but don't quite understand it, please help me

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
7 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

just subtract the bad ones from the total you will get the true position . than take %3 and print.