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

if you have wa#1
Posted by Baurzhan 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
Re: if you have wa#1
Posted by Roman Rubanenko 17 Jan 2011 13:38
rlly thx,man;)
Re: if you have wa#1
Posted by Kaixiang Jin 22 Jul 2016 19:32
Your solution works.Thanks a lot!!!