

I need some help
source link: http://codeforces.com/blog/entry/96739
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

I don't know how to solve this problem with constraints A,B,C <= 31; P <= 10^9; T<=1000 and of course C/gcd(A,B,C) >= 200 doesn't true anymore. I need help with this new problem.
The idea that I've used on the original problem can't be used here (that is I iterate over z from 0 to D/C, because the constraint C/gcd(A,B,C) >= 200 shows that C >= 200 and can be deduced that D/C <= D/200 which fits the time limit and sum up the number of solutions to diophantine equation on each iteration).
Recommend
-
138
Original PosterIsaacOnCameraPosting Some Photos from Pixel 2Hello, Pixel fans!Earlier this week we announced the all-new Google Pixel 2 and Pixel 2 XL with the world’s best...
-
15
Help me secure some free time for org-mode in 2020 emacs-orgmode
-
5
i really need to find some of that obedience lacquer The first day of Railsconf just flew by, and it's been quite a blast. The highlight of the day was the triple-even...
-
25
About the Acceptable Ads program and "non-intrusive" ads AdBlock Support
-
3
Some housekeeping (why I help as a mod) This might be surprising, but one of the things I'm passionate about helping with around community spaces, is some of the chores... Photo by
-
7
Weekend Warrior: The Razer Basilisk V3 Pro has some new tricks to help lift your game
-
5
H
-
8
Internet AccessA new feature for old Echo speakers could boost your home WiFi setup
-
10
chromate00's blog I need some h...
-
3
Some community links are not working
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK