#Lutece1985. 方程的解
方程的解
Migrated from Lutece 1985 方程的解
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
给定一个四元二次方程:
试求非零整数解的个数。
Input
第一行四个整数
Output
第一行一个整数,表示方程整数解的个数。
Samples
-5891 4371 -5007 4394
3536
2996 4828 2392 -3903
3328
1 -10 -100 1000
567888
Resources
2018 UESTC ACM Training for Search Algorithm and String