A Go's newbie with issues on iteration problems

Revision en1, by joanlopez, 2017-10-12 13:59:27

Hi,

I'm solving some of the problems to practise with and learn Go language. The problem is that I can't solve those problems where you initially have an integer that means how many times you will have to solve the problem itself.

I mean problems like 4C - Registration System or 71A - Way Too Long Words.

I'm trying the tests in my machine with the Gogland IDE and it works well, the problem is when the code is run by the Codeforces' test runner.

Here you can see my submissions: 31218923 & 31238209

The process I follow to reproduce the tests is introducing the input, line per line, so, for example, introducing the number, then pushing ENTER, then typing the first word and so on.. and I think that the Codeforces' test runner does not proceed this way, however, i have no idea how to deal with it in Go because i'm just starting with this language.

Thanks a lot!

Tags golang, #codeforces

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English joanlopez 2017-10-12 13:59:27 937 Initial revision (published)