Equations Problem Description Consider equations having the following form: a*x1^2+b*x2^2+c*x3^2+d*x4^2=0a, b, c, d are integers from the interval [-5
转载 2017-02-17 11:32:00
81阅读
2评论
EquationsTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2879Accepted Submission(s):
原创 2021-07-29 16:24:36
72阅读
A=cos(pi*x-pi/2)i+sin(pi*x)j 正电荷形成的电场 负电荷形成的电场 正负电荷形成的电场 无限长导线上均匀分布的正电荷 电场 均匀分布电荷的平面 电场 电荷均匀分布的球面形成的电场 磁铁的磁场 均匀电流导线上的磁场 电流环形成的磁场
原创 2021-08-26 09:43:34
137阅读
题目地址:点击打开链接 思路:不能直接用二次函数根的判别公式,因为a,b,c的不同取值会导致函数变成常函数,一次函数等 a=0 b=0 c=0 INF 对任何数都成立 a=0 b=0 c!=0 0 常函数 a=0 b!=0 c=0 1 一次函数 a=0 b!=0 c!=0 1 一次函数 a!=0    
原创 2022-08-04 09:12:56
32阅读
EquationsTime Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5526    Accepted Submission(s): 2193Problem DescriptionConsider equations h
原创 2022-12-02 00:22:59
32阅读
题意:求方程解的个数这里4个x都不相关,所以只要计算 ax1^2+bx2^2==cx3^2+dx4^2遍历找出左边所有的解,然后对应找出右式的值对应的答案(这里0都挖掉了)从1开始遍历(因为平方-1和1解不重复计算)最后结果*16 //这一步优化很给力#include #include #define N 1000001int hash1[N],hash2[N];
原创 2021-08-13 14:25:22
118阅读
题目地址:点击打开链接思路:先排序,再依次输出式子短的AC代码:#include #includeusing namespace std;int pos[31];int a[31];int flag,num,n;void print(int sum){ int i; for(i=pos[num-1]+1; i<n; i++) {
原创 2022-08-04 09:24:42
76阅读
原创 2022-08-06 00:07:33
261阅读
将所有的组合方式分成两组,其中一组存在哈希表里,这样时间复杂度就降为了2*n*n。#includnclude<q...
原创 2022-10-19 16:14:02
22阅读
Problem Description Consider equations h
原创 2022-12-02 00:32:03
77阅读
EquationsTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3853Accepted Submission(s): 1551Problem DescriptionConsider equations having the following form:a*x1^2+b*x2^2+c*x3^2+d*x4^2=0a, b, c, d are integers from the interval [-50,50] and any of them
转载 2013-05-22 16:10:00
81阅读
2评论
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&categor
转载 2013-03-24 12:09:00
39阅读
2评论
解题报告:题目意思很好理解,就是求有多少种方程的解的形式,输出来就可以了。如果用4重循环的话,可能会超时,没有试过。。直接用hash一一对应就可以了。2重循环把s = a*x1*x1+b*x2*x2 看做一个数组的下标,如果s > 0 ,hash1[s]++;若s 再2重循环把s = c*x3*x3+d*x4*x4 看做下标,开始查找。#include#i
原创 2022-08-05 15:51:48
79阅读
Additive equations Time Limit: 10 Seconds Memory Limit: 32768 KB We all understand that an integer set is a collection of distinct integers. Now the question is: given an integer set, can you
原创 2023-04-20 11:31:59
83阅读
Equationshttp://acm.hdu.edu.cn/showproblem.php?pid=1496Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionConsider eq
原创 2023-04-12 06:18:54
53阅读
EquationsTime Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5596    Accepted Submission(s): 2221Problem DescriptionConsider equations hav
原创 2023-02-20 02:01:34
108阅读
【题目链接】 http://acm.hdu.edu.cn/showproblem.php?pid=1496 【题目大意】 给出一个方程ax1^2+bx2^2+cx3^2+dx4^2=0,求-100到100范围内的解集数量 【题解】 将ax1^2+bx2^2存入哈希,反查-cx3^2-dx4^2. 【
转载 2017-01-19 14:46:00
40阅读
2评论
All the two important problems that the EM theory trys to describe and explain are propogation and radiation of EM wave, on the basic of Maxwell Equat
原创 2021-08-26 09:59:03
112阅读
Problem Description We all understand that an integer set is a collection of distinct integers. Now the question is: given an integer set, can you find all its addtive equations? To explain what a
原创 2021-07-06 14:04:14
76阅读
Dreisam EquationsTime Limit:10 Seconds Memory Limit:32768 KB Special JudgeDuring excavations in the Dreisamwuste, a desert on some far away and probably uncivilized planet, sheets of paper containing mysterious symbols had been found. After a long investigation, the project scientists have concluded
转载 2013-06-09 10:26:00
85阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5