创想实验室
我们都是梦想家

A water problem

描述

Two planets named Haha and Xixi in the universe and they were created with the universe beginning.

There is 7373 days in Xixi a year and 137137 days in Haha a year.

Now you know the days NN after Big Bang, you need to answer whether it is the first day in a year about the two planets.

输入

There are several test cases(about 55 huge test cases).

For each test, we have a line with an only integer N(0N)N(0≤N), the length of NN is up to 1000000010000000.

输出

For the i-th test case, output Case #i: , then output “YES” or “NO” for the answer.

样例输入

10001
0
333

样例输出

Case #1: YES
Case #2: YES
Case #3: NO

题解

高精度除法

代码

 

网站所发布的代码已提交通过,代码可能经过修改防止抄袭,未经允许不得转载:创想实验室 » A water problem
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址