Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

reaper28's blog

By reaper28, history, 4 weeks ago, In English,

question link : https://codeforces.com/problemset/problem/1196/D1 solution link : https://ideone.com/IfLK0U My Logic : if k<=2 checked directly else made all the three possible strings and used brute force to check all three and took minimum of them as the ans. please help

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