01/10/2018, 00:37

Bài PhoneCall trên CodeFights (C++)

Đề :
Some phone usage rate may be described as follows:
first minute of a call costs min1 cents,
each minute from the 2nd up to 10th (inclusive) costs min2_10 cents
each minute after 10th costs min11 cents.
You have s cents on your account before the call. What is the duration of the longest call (in minutes rounded down to the nearest integer) you can have?

Trên CodeFights nó báo lỗi mình sao test 5 . Nhưng mình copy code vào codeblock thì ra kết quả vẫn đúng :


Các bác thông não cho mình với .

Bài liên quan
0