Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя vk705017

Автор vk705017, история, 19 месяцев назад, По-английски

please correct me where i am wrong in question B.

i have implemented using finding longest common substring.

https://codeforces.me/problemset/submission/1796/195409270

edited-->GOT IT THANKS

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

»
19 месяцев назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

if the first character of s and t are equal c, then output c* if the last character of s and t are equal c, then output *c

else you have to check if any adjacent pair of s appear in t, if yes, output * (2 characters) * else the answer is NO

p/s: sorry for my bad English, do you understand it? see my solution for better understanding My code in Python