[Community Puzzle] Barcode scanner


#1

https://www.codingame.com/training/medium/barcode-scanner

Send your feedback or ask for help here!

Created by @GeoConHD,validated by @java_coffee_cup,@selenae and @Trit0r.
If you have any issues, feel free to ping them.


#2

according to https://barcode-coder.com/en/ean-13-specification-102.html the checksum is not calculated as stated in the puzzle.


#3

The problem statement does not explicitely tell you how the checksum was calculated, but instead gives you the way to verify that the barcode is consistent with its checksum.
You can verify that both operations are perfectly consistent with each other: Your link says checksum = -(3*Odd + Even) mod 10 while the statement says 3*Odd + (Even+checksum) = 0 mod 10.