Problem: A biscuit making machine produces B biscuits at the following moments: A seconds, 2A seconds, 3A seconds and each subsequent multiple of A seconds after activation.  Find the total number of biscuits produced within T + 0.5 seconds after activation.

Submission attempts (in order):
#############################################################...#.....#...#.......
###########################################.#.################....#...............
############################################.#..################....##............
######################.#####################..#.##################.....#..........
#######################.#####################.#..#######..##########......#.......
#######################..####################....####...#.....######.###..........
########################################....#...##...###..#.......##..####........
###################.##.#....#########........#.#........##.###....................
####################.#..#....##..#..........#.##........##.#######................
###########.########.....#.....##.............####...#..#...########..#...........
############.########.....#...................########..#...########...#.##.......
########..###..####.....#####..................#######.......##.####..#....#......
########.....#.....##########...................#####........#..###..#.......##...
########........#####.##....##.#............................###.##..#...........#.
########......######.........................#.................##.................
########.....########....................................##....#..................
########.....##############......................#...........##.#.................
#########...###############.......................................................
###########..##############......................................#................
###########.......#####..........................................#................


╬╬























n = int(input())
v = list(map(int, input().split()))
c = list(map(int, input().split()))

ans = 0
for i in range(n):
    if v[i] - c[i] > 0:
        ans += v[i] - c[i]

print(ans)

#########################################.#..################....##..........
###################.#####################..#.##################.....#........
####################.#####################.#..#######..##########......#.....
####################..####################....####...#.....######.###........
#####################################....#...##...###..#.......##..####......
################.##.#....#########........#.#........##.###..................
#################.#..#....##..#..........#.##........##.#######..............
########.########.....#.....##.............####...#..#...########..#.........
#########.########.....#...................########..#...########...#.##.....
#####..###..####.....#####..................#######.......##.####..#....#....
#####.....#.....##########...................#####........#..###..#.......##.
#####........#####.##....##.#............................###.##..#...........
#####......######.........................#.................##...............
#####.....########....................................##....#................
#####.....##############......................#...........##.#...............
######...###############.....................................................

a, b, t = map(int, input().split())
print(b * (t // a))

Verdicts: Wrong Answer

Runtime Error

Accepted