04. Articles 2.0
Имам проблем с една задача. Нулевите тестове са правилни, но тези скритите гърмят. Задачата е Articles 2.0 от Objects And Classes Exercise.
Линк към решението: https://pastebin.com/DWdyZnvv
Линк към задачата в Judge: https://judge.softuni.org/Contests/Compete/Index/1327#3
Това е условието:
Change the program from the second problem, so you can store a list of articles. You will not need the methods anymore (except the ToString method). On the first line, you will get a number n. On the next n lines, you will get some articles in the same format as the previous task ("{title}, {content}, {author}"). Finally, you will get one of the three inputs: "title", "content", "author". Print the articles.
Input |
Output |
2 Science, planets, Bill Article, content, Johnny title |
Science - planets: Bill Article - content: Johnny |
3 title1, C, author1 title2, B, author2 title3, A, author3 content |
title1 - C: author1 title2 - B: author2 title3 - A: author3 |
Благодаря предварително! :)
Благодаря много! :)