Zoj 2334 Monkey King/left-side tree + query set, zoj2334
Original question link: http://acm.zju.edu.cn/onlinejudge/showProblem.do? ProblemId = 1389
N monkeys that do not know each other (each monkey has a combat power value)
There is a conflict between two unknown monkeys. The two monkeys will ask for the strongest one they know.
The
Original title Link: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1389Roughly test instructions: n only monkeys that don't know each other (each monkey has a fighting value)Two of monkeys do not know the conflict between the two, two monkeys will be asked each of the strongest they knowthe monkeys were dueling. after the duel, the two groups of monkeys knew each other. The duel of the two monkeys combat effectiveness halved ... There a
Test instructions: At first there were n monkeys, each with a power value. And they didn't know each other, and then they fought M-times. Two monkeys every two times a, a, A and B struggle is that a and a will pull out one of their strongest friends from their own circle of friends, and then the strongest of the two monkeys hit, after the end of the two monkeys to halve the power value. And all two of the monkey's circle of friends know each other (that is, they will never fight again). The prob
Monkey Test 1 -- Use of Monkey, monkey test 1
1 Monkey tool 2 3 1. What is Monkey 4 5 Monkey is a command line tool in Android, which can be run in the simulator or on the actual device. It sends a pseudo-random user event stream
--throttle
Inserts a fixed delay between events. You can use this option to slow down the Monkey. If not specified, there was no delay and the events are generated as rapidly as possible.Sets the event interval between events of two times. This parameter reduces the speed, and if you do not specify this parameter, the system sends the event as soon as possible.
--pct-touch
Adjust percentage of touch events. (To
How to book 2016 Monkey Zodiac stamps?
Among them, small version of the ticket, small promissory note for the appointment of the way to buy, mainly in order to avoid the yellow cattle inverted ticket. According to the website publicity, the Zodiac, the Spring Festival theme products in December 23, 2015-January 7, 2016 for the application, the results of the announcement on January 12, 2016, the payment period of 12th-19th 24 o'clock, ov
Monkey is a command-line tool in Android that can be run in the emulator or in the actual device. It sends pseudo-random user event streams (such as key input, touch input, gesture input, etc.) to the system, enabling stress testing of the application under development. Monkey testing is a fast and effective method to test the stability and robustness of the software.
multiple-c options, and each-c option can only be used for one category.Debugging--dbg-no-eventsSet this option, monkey will perform the initial boot, enter into a test activity, and no further events will be generated. For best results, combine it with-V, one or several package constraints, and a non-0 value that keeps monkey running for 30 seconds or longer, providing an environment to monitor conversion
Intro
From the beginning of this small series will take you to learn the use of Android monkey, we still keep as concise and clear as possible to tell everyone. Also welcome everyone has a good article submission to us, there are red envelopes reward oh. Email: [Email protected], comment submissionWhat's monkey? monkey= Monkeys?
command.
Example 3:
1. Set the pause for each action for 5 seconds or another time period until an error occurs. At this time, you can have more time to view the execution process of each action.
2. After an error is found, change the source code. After the error is changed, perform the same seed value and the same starting position to test the same event again.
3. If the error does not occur again, perform another SEED value test. It is a stable en
First, the preliminary analysis method:After the monkey test error occurs , the general error steps are the following:1. Find out which part of the monkey is wrong2, check the monkey inside the error before some event action , and manually perform the action3, if the above steps are not found , you can use the previously executed
Monkey testing the use of 1--monkeyOriginal address:http://www.douban.com/note/257029872/(Transferred from watercress, copyright belongs to watercress and Douban friends, if offended please forgive and contact us)Use of MonkeyFirst, what is MonkeyMonkey is a command-line tool in Android that can be run in the emulator or in the actual device. It sends pseudo-random user event streams (such as key input, touch input, gesture input, etc.) to the system,
need to use multiple-p options, and each-p option can be used for only one package.--kill-process-after-error:Typically, when Monkey is stopped due to an error, the application that is faulted will continue to be in the running state. When this option is set, the system will be notified of the process of stopping the error. Note that the normal (successful) end, and does not stop the process from starting,
What is a monkey patch (Monkey Patch)? In dynamic languages, you append and change functionality without modifying the source code.
The purpose of using monkey patches:1. Additional function2. Function change3. Error correction procedure4, increase the hook, in the execution of a method while performing some other processing, such as printing logs, to achieve AO
Data Structure practice -- monkey selects the king and the data structure Monkey King
This article focuses on the basic series of online courses on data structures (2): practical projects of linear tables.
Project-monkey election king]A group of monkeys numbered 1, 2, 3... M, this group of monkeys (m) sat around in 1-m order. The number starts from 1st and the n
Monkey test ==== monkey test is used to check app Memory leakage and cpu usage, and monkeyapp
Monkey testing has been being studied recently. There are a lot of online materials, but they are all copied one by one. Few Original
I will sort out the app Memory leakage check:
References:
Monkey Test Strategy: https://te
only the activities listed by a category in these categories. If no category is specified, monkey selects the activity listed in the following categories: intent. category_launcher or intent. category_monkey. To specify multiple categories, you need to use multiple-C options. Each-C option can only be used for one category.Debugging-- Dbg-no-EventsWhen this option is set,
Monkey Patch (Monkey Patch) is a special programming technique. Monkey patch can be used to dynamically modify (extend) A class or module at run time. We can modify the Third-party libraries that do not meet our needs by adding monkey Patch, or you can modify errors in the code by adding
as: 5-way keyboard, rewind button, menu key
--pct-syskeys
Adjust the percentage of the System key event
These keys are usually reserved for use by the system, such as home, back, Start call, End call, and volume control keys
--pct-appswitch
Adjust the percentage of startup activity
In a random interval, monkey will execute a startactivity () call as a way to maximally cover all activity in the package
Monkey stress testADB-D shell monkey-p your. Package. Name-V 6000
1. What is monkey?
Monkey is a command line tool in Android and can be run in a simulator or on a real device. It sends a pseudo-random user event stream (such as key input, touch screen input, and gesture input) to the system to perform stress testing o
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.