当前位置:网站首页>ACM training report of the fifth week
ACM training report of the fifth week
2022-07-21 22:44:00 【Eloi0424】
Personal blog :Eloi- Still moving forward .
Catalog
21.11.01 Monday
- Codeforces Round #752 (Div. 2)
- C. Di-visible Confusion
The question : I'll give you a sequence ai If the number is not (i+1) Divisible can be deleted
Judge whether the series can be completely deleted
Ideas :
– The reasoning question –
If a number cannot be deleted, then it is right 2 To i+1 Must be divisible
We can traverse this sequence
Judge whether each number meets the above requirements
Satisfaction criterion cout no
The lesson of blood and tears : Be sure to read the input data
wa After an hour, my state of mind collapsed , Only after the game did I know that the input data had not been read . - D. Moderate Modular Mode
– Conclusion question –
The question : give x,y Two numbers let you ask n Satisfy n mod x = y mod n
Conclusion :- When x=y when n=x
- When x>y when n=x+y
- When x<y when n=((y/x)*x+y)/2
- C. Di-visible Confusion
21.11.02 Tuesday
- Differential restraint system
- P5960 【 Templates 】 Differential constraint algorithm
The difference constraint system is actually a set of inequality equations
Because after its transformation , The form of inequality is very similar to the iterative equation in the shortest path
We can solve this kind of problem through graph theory - P1993 Small K The farm
- P5960 【 Templates 】 Differential constraint algorithm
21.11.3 Wednesday
- P1993 Small K The farm
– Simple differential constraint system –
Be careful a=b Can be converted to a-b<=0 And a-b>=0
a-b=c Empathy
21.11.4 Thursday
- P3275 [SCOI2011] candy
- Differential restraint system
a<b Equivalent to a<=b-1
a>b Equivalent to a>=b+1
The point to note here is :
The feasible solution we get is >=1 Of
So we should seek the longest way
And the longest starting path of the super source point is 1
The drawing method should also be modified consistently
Details refer to : Difference constraint
- Differential restraint system
21.11.5 Friday
- Simulated annealing
- P1337 [JSOI2004] Balance point / To hang up XXX
As I understand it , Simulated annealing is actually a more rational greed .
An optimization of mountain climbing algorithm .
By receiving a temporary worse solution ,
To get a certain possibility of obtaining the global optimal solution .
The key lies in the adjustment of parameters . - Scope of application of simulated annealing :
You can try any question that can be randomized , key word : Maximum , minimum value .
- P1337 [JSOI2004] Balance point / To hang up XXX
21.11.6 Saturday
21.11.7 Sunday
边栏推荐
- 西瓜书第二章-比较检验
- 029:陶陶摘苹果
- Cookie快速入门
- P/np/np complete /np hard
- Linear regression finale (ridge, Lasso regression principle, formula derivation), you want everything here
- 第九周ACM训练报告
- Probability theory - variance and covariance, correlation coefficient
- In depth analysis of multiple knapsack problem (Part 2)
- 14. Longest common prefix
- Creative programming / primary school group (grades 4-6) - Graphic Creativity
猜你喜欢
第三周ACM训练报告
2020普及组总结
Characteristics and differences between PCB and integrated circuit
438. Find all letter ectopic words in the string
230. The k-th smallest element in the binary search tree
Open source data visualization tool datart new user experience tutorial for popular communities
What are the problems in the classification and future development of IOT devices?
Upgrade every day
19. Delete the penultimate node of the linked list
226. Flip binary tree
随机推荐
第十周ACM训练报告
74. 搜索二维矩阵
STL初步了解
验证哥德巴赫猜想
西瓜书第二章笔记-性能度量
006: floating point data type storage space size
创意编程/小学组(4-6年级)-图形化创意
Merge sort
第七周ACM训练报告
Cards
归并排序
How to complete the design of RGB lamp Bluetooth mesh module from 0 to 1
概率论-最大似然估计
堆-原理到應用——堆排序、優先級隊列
D - AND and SUM (AtCoder Beginner Contest 238)
What impact does the Internet of things have on the development of enterprises?
In depth analysis of multiple knapsack problem (Part 1)
299. Guessing numbers game
029: Tao Tao picks apples
844. Compare strings with backspace