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

Автор comder12, история, 21 месяц назад, По-английски
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
21 месяц назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

both codes are not same , the one which is giving tle is checking conditions after every input of second matrix which makes the overall time complexity of n*n*m*m.

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

You are not using the Fast IO statement in the first submission. Refer to this: https://stackoverflow.com/questions/31162367/significance-of-ios-basesync-with-stdiofalse-cin-tienull