ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1542. Autocompletion

Baurzhan if you have wa#1 [2] // Problem 1542. Autocompletion 4 Jun 2010 16:48
don't print endline symbol after last query:

for(int i=0;i<queries;i++){
answer_the_query();
if(i!=queries-1) printf("\n") //without this line it got wa#1!
}

Edited by author 15.09.2010 08:42
Roman Rubanenko Re: if you have wa#1 // Problem 1542. Autocompletion 17 Jan 2011 13:38
rlly thx,man;)
Kaixiang Jin Re: if you have wa#1 // Problem 1542. Autocompletion 22 Jul 2016 19:32
Your solution works.Thanks a lot!!!