Containers in STL are divided into two types by storage method: containers stored in arrays (such as vector and deque), and containers stored in discontinuous nodes (such: list, set, map ). When using functions in STL to delete elements using the erase method, you need to pay attention to some issues (I have not thoroughly understood the cause of the problem, after learning the storage form of the container, I will go back and explain the cause. The following content is only for Reading Notes ).
Portal
Ask for the value of $2 ^ {2 ^ {2 ^ {2 ^ {... }}}\ mod p $. $ P \ Leq 10 ^ 7 $
First, we thought of $ x \ equiv x ^ 2 \ mod p $. Then we found that this would not be done...
We can think of extending Euler's theorem: $ A ^ B \ equiv a ^ {B \ mod \ varphi (p) + \ varphi (p)} \ mod p $, when $ B
1 #include
Luogu4139 correct use of God and set extended Euler's Theorem
Correct use of VM role in Windows Azure by: Microsoft, source: blog, responsible editor: Valen,
At the 2010 PDC Conference, we introduced a new computational role-VM role in Windows azure. This feature greatly improves application control, but may be confused with the full infrastructure solution in Windows hyper-v. They all have their own architecture models.
At the 2010 PDC Conference, we introduced a new
Now is the information age of life, basic every friend will have a U disk, U disk for us to store information, data brought a lot of convenience, U disk will have a lot of important documents, software. Now say how to pay attention to the maintenance of U disk, and the correct use.
1, insert a U disk when you want to see the direction of the USB port, do not plug in the wrong direction, inserting the compu
correct use of text in PPT
Text is the natural enemy of PPT. Therefore, unless your PPT is devoted to reading rather than speech, it is recommended that you do not put too much text.
Secondly, PPT is a logical way of expression, large text can have, but must tidy up the logic, give them number and small title, distinguish primary and secondary, total score, coordinate, circulation and so on, do not direct
If you are interested in this article, you may have encountered the following similar exception hints in programming:
1, the thread operation is invalid: it is accessed from a thread that is not creating the control "X". (x is the name of the control)
2, "the operation performed on the control is being invoked from the wrong thread." Use Control.Invoke or Control.BeginInvoke to marshal to the correct thre
Correct use of synchronized and two times to achieve multithreading security, to make efficient two in line with the expected program, especially when multiple threads run an object, as shown in the following figure:
The test code is as follows:Pay special attention to if (shutdownrequested) {* Part of different wording.
Otherwise it will output a phenomenon that is inconsistent with logic:Such as:
runner--
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.