#P8780. [蓝桥杯 2022 省 B] 刷题统计

[蓝桥杯 2022 省 B] 刷题统计

Problem Description

Xiao Ming decides to start working hard on solving problems to prepare for the Lanqiao Cup contest starting next Monday. He plans to solve aa problems per day from Monday to Friday, and bb problems per day on Saturday and Sunday. Please help Xiao Ming calculate on which day he will reach a total number of solved problems greater than or equal to nn according to his plan.

Input Format

Input one line containing three integers aa, bb, and nn.

Output Format

Output one integer representing the number of days.

10 20 99
8

Hint

For 50%50 \% of the test cases, 1a,b,n1061 \leq a, b, n \leq 10^{6}.

For 100%100 \% of the test cases, 1a,b,n10181 \leq a, b, n \leq 10^{18}.

Lanqiao Cup 2022 Provincial Contest Group B Problem C.

Translated by ChatGPT 5