Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

太恶心了!

Posted by DongSJ at 2011-08-30 14:38:03 on Problem 3892 and last updated at 2011-08-30 14:42:01
1.输出只要把小的数字放前边就可以了;
2.答案有1*p的情况,即输入是一个素数(何等的恶心……);
3.能想到枚举s解二次方程的话(x^2+s*x-k*n=0),只要再想到枚举平方数(因为判别式的增长速度很慢,所以平方根几乎不怎么增长),速度不是问题。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator