谁帮我翻译一下题面
  • 板块灌水区
  • 楼主Dragon_Knight
  • 当前回复8
  • 已保存回复8
  • 发布时间2021/4/11 10:47
  • 上次更新2023/11/5 00:42:49
查看原帖
谁帮我翻译一下题面
85657
Dragon_Knight楼主2021/4/11 10:47

Since the three cycles have different periods, the peaks of the three cycles generally occur at different times. We would like to determine when a triple peak occurs (the peaks of all three cycles occur in the same day) for any person. For each cycle, you will be given the number of days from the beginning of the current year at which one of its peaks (not necessarily the first) occurs. You will also be given a date expressed as the number of days from the beginning of the current year. You task is to determine the number of days from the given date to the next triple peak. The given date is not counted. For example, if the given date is 10 and the next triple peak occurs on day 12, the answer is 2, not 3. If a triple peak occurs on the given date, you should give the number of days to the next occurrence of a triple peak. 


This problem contains multiple test cases!

The first line of a multiple input is an integer N, then a blank line followed by N input blocks. Each input block is in the format indicated in the problem description. There is a blank line between input blocks.

The output format consists of N output blocks. There is a blank line between output blocks.
2021/4/11 10:47
加载中...