Професионална програма
Loading...
MarioVl avatar MarioVl 2 Точки

Problem 3. Tanks Collector

Здравейте , ще може ли някой да даде рамо за тази задачка дава ми 90/100 и не мога да разбера защо .

https://judge.softuni.bg/Contests/Practice/Index/1862#2

 

https://pastebin.com/H38B8ezY

Тагове:
0
Fundamentals Module
Yargi avatar Yargi 14 Точки

On line 50 you check for the new tank on the given index and for being in the list.

if (listTanks.get(indexInsert).equals(tankName) && listTanks.contains(tankName))

so if the list contains the tank on another index you add him again.

0