Submission #4852114


Source Code Expand

Copy
import math
n = int(input())
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
A = [a, b, c, d, e]
min_A = min(A)
result = math.ceil(n / min_A) - 1 + 5
print(result)

Submission Info

Submission Time
Task C - Five Transportations
User showyou41
Language Python3 (3.4.3)
Score 300
Code Size 210 Byte
Status
Exec Time 18 ms
Memory 3064 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 s1.txt, s2.txt, s3.txt
All 300 / 300 in01.txt, in02.txt, in03.txt, in04.txt, in05.txt, in06.txt, in07.txt, in08.txt, in09.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, in15.txt, in16.txt, in17.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
in01.txt 18 ms 3060 KB
in02.txt 18 ms 3060 KB
in03.txt 18 ms 3064 KB
in04.txt 18 ms 3060 KB
in05.txt 18 ms 3060 KB
in06.txt 18 ms 3060 KB
in07.txt 18 ms 3060 KB
in08.txt 17 ms 3060 KB
in09.txt 18 ms 3060 KB
in10.txt 18 ms 3060 KB
in11.txt 18 ms 3064 KB
in12.txt 18 ms 3060 KB
in13.txt 18 ms 3060 KB
in14.txt 18 ms 3060 KB
in15.txt 18 ms 3064 KB
in16.txt 18 ms 3060 KB
in17.txt 18 ms 3060 KB
s1.txt 18 ms 3060 KB
s2.txt 18 ms 3060 KB
s3.txt 18 ms 2940 KB