摘要:
代码: #include #include using namespace std; #define MAXN 10000 int a[MAXN]; int d[MAXN]; int vis[MAXN]; int n; int ans; int dp(int cur, int x) ... 阅读全文
摘要:
Sichuan University Programming Contest 2011 Preliminary(for Non-SCUers) Date 2011-04-04 12:00 Length 5h 解题报告链接如下(先开个坑): ID Problem A Course B... 阅读全文
摘要:
返回目录 题目大意:求x^2-x+y^2-y-2*x*y=0在1 #include #include #include using namespace std; int f(int a, int b) { int xa = 2; double xb = (sqrt((double)1+8... 阅读全文
摘要:
返回目录 题目大意:给定整数M(10 #include #include using namespace std; int m; void f() { int a, b; int t = 1+(int)sqrt((double)1+2*m); //上界 for(int i=t; i... 阅读全文
摘要:
返回目录 题目大意:在复平面上指定一个范围,求这个范围里的高斯素数的密度(即 高斯素数个数/总坐标数, 化为真分数) 。 题目类型:基础模拟题 / 数学背景题 题目分析: A Gaussian integer a + bi is a Gaussian prime if and on... 阅读全文