#include Main (){int a=0,b,n,i,j,s[100],max,min,w;scanf ("%d", n);w=0;for (i=0;iscanf ("%d", s[i]);Max=s[0];for (i=1;iif (MaxMax=s[i];else {max=s[i+1];min=s[i];}}Min=s[0];for (i=1;iif (Min>s[0])Min=s[i];for (i=0;iW=w+s[i];w=w/n;for (i=0;iif (s[i]>w)a++;printf ("%d%d%d%d\n", max,min,w,a);return 0;}Use an array to find the maximum, minimum, and average points of an array, and find out how many of them exceed
1, first, we have to open the computer on the Baidu Music application, into the Baidu Music play the first page, as shown in the picture.
2, randomly open a song, you can search, or hot songs and other forms, to find a song click Play, as shown in the picture.
3, when this song is playing, we look at the bottom of the playback page there is a "listen to similar" button, click it, as shown in the picture.
4, afte
Delete duplicate records (keep last duplicate data):
Delete table where primary key ID not in (select MAX ([primary key ID]) from table group by (duplicate field one + duplicate field two))
Delete duplicate records (keep first duplicate data):
Delete table where primary key ID not in (select min ([primary key ID]) from table group by (duplicate field one + duplicate field two))
Finds all duplicate data for a database that does not include the last row of duplicate data:
SELECT * FROM table w
Title: Suppose a machine stores only a record labeled ID, assuming that each of the data holds 2 backups, so that 2 machines store the same data. Where ID is an integer:
Question 1, at a certain time, if you get a list of data file IDs. Can you quickly find an ID that appears only once in this table? That is, quickly identify the data ID of the failed machine store.
Question 2, if there are two machines crash. (assuming that two backups of the same da
Chinese characters
According to the initials of Chinese characters, to find relevant records in the table, how to achieve? For example, enter "Zgyh", you can find all the "Bank of China" records.
if exists (SELECT * from dbo.sysobjects WHERE id = object_id (N ' [dbo].[ F_GETPY] and Xtype in (n ' FN ', n ' IF ', n ' TF '))
Drop function [dbo]. [F_getpy]
Go
--Create phonetic function
Create function f_getpy
already been won by either player, and that the board is not full.InputThe input contains one or more test cases, followed by a line beginning with a dollar sign that signals the end of the file. each test case begins with a line containing a question mark and is followed by four lines representing the board; formatting is exactly as shown in the example. the characters used in a board description are the period (representing an empty space), lowercase x, and lowercase o. for each test case, ou
There are many types of stsadm commands, and there are dozens of operation commands (strings after-O), which are hard to remember.
I learned one trick today and want to share it with you.
In the new dos, a pipe mechanism similar to that in UNIX systems is added. the so-called pipe mechanism is a cross-process processing mechanism that allows a standard output of a process as the standard input of another process (the standard input output refers to the input and output on the screen ). in
= Array_values ($fruits); Print_r ($values);
The results of the program run as follows:The copy Code code is as follows: Array ([0] = red [1] = yellow [2] = = green)
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/1015425.html www.bkjia.com true http://www.bkjia.com/PHPjc/1015425.html techarticle PHP lookup and search array elements method Summary, PHP find array elements in this article, the example describe
This question is very clear. After reading the question, I will think of a DP question. The question is how to define the State and establish a reasonable dynamic planning equation to solve this problem.
The output of this question is the least time spent when the number of bubbles reaches mm. Therefore, the time permission is less than the number of bubbles to mm. Therefore, we can use a two-dimensional backpack to find the maximum number of girls th
, so consider how the relationship of nodes and groups is represented as a tree .
Union Find
The nodes are organized in a parent-link Way, so the root of the node is the group number of the group.
Tree this data structure is prone to extreme situations , because in the process of achievement, the final form of the tree depends heavily on the nature of the input data itself, such as whether the data is sorted, randomly distributed,
(1) We right-click the computer on the desktop, then click "Management" in the pop-up menu and then find the "service and Application"-"service" option in the interface, the effect is as follows.
(2) can also press the WIN+R in the missile run interface, input services, click OK.
(3) At the same time press the CTRL,SHIFT and ESC three keys, open Task Manager, click the "Services" tab
Locate the WLAN AutoConfig (WLANSVC) service, if
Pawn Transposition
There are n pieces a,n a piece B, in a row on the board. There is an empty space between them, with the "." Say, for example:
Aaa. Bbb
Now you need all the A and B pieces to swap positions. The rules for moving pieces are:1. A piece can only move to the right, B pieces can only move to the left.2. Each piece can be moved to an adjacent vacancy.3. Each piece can skip a different piece and fall into the empty space (a skip B or b skip a).
Aaa. BBB can go: Move a ==> AA. ABBB mov
Without any comparison, find out the larger number of two numbers public class twonumwithoutjudge{//Judge a number of symbols (return 0 negative, 1 positive) public static int getsign (int x)
{return ((x>>31) ^1) 1;
}//Method 1 (limited premise A is not equal to B, may overflow) public static int GetMax01 (int a,int b) {int c=a-b;
int d=b-a;
int c=getsign (C);
int d=getsign (D);
retur
Enough memory: You can use the idea of a quick sort, which is an O (n), and the algorithm thought is as follows:
• Randomly select an element to place the element smaller than it on the left, and the element larger than it on the right
• If it happens to be in the middle digit position, then it is the median and can be returned directly
• If the number is less than half of it, then the median must be on the left half, recursively to the left.
• Otherwise, the median must be on the right half, ba
tree and 2-3-4 tree, the maximum number of children is called the Order of B-tree, each node of B-Tree is more than the original node that indicates the number of elements of the storage space. The Order of the general B-tree is very large.Advantages: Easy to find, each node is stored in the corresponding hard disk page, each time read a node and key value comparison, and then determine the next time to read which node.Cons: When you need to do a mid
An order to explainCommon example:find Path-option [-print] [-exec-ok command] {} \;The directory path that the Path:find command looks for. For example, use. To represent the current directory, and/to represent the system root directory.The-print:find command outputs the matched file to standard output.The-exec:find command executes the shell command given by the parameter to the matching file. The corresponding command is in the form of ' command ' {} \;, note the space between {} and \;-ok: T
Find commandSyntax: Find search path Match expressionFunction: This command is used to find eligible files in the specified path, the search path can be multiple directories, and different directories are separated by spaces(1) Matching expression 1-name FileName: The name of the file to find. You can use the wildcard
Each operating system is made up of thousands of different kinds of files. The system itself includes files, users ' own files, shared files, and so on. Sometimes we often forget where a file is on the hard drive.
Looking up a file in Microsoft's Windows operating system is fairly straightforward, as long as you click "Start" on the desktop-"search" to find files and documents on your local hard disk, on the LAN, and even on the internet.
However,
Each operating system is made up of thousands of different kinds of files. The system itself includes files, users ' own files, shared files, and so on. Sometimes we often forget where a file is on the hard drive.
Reprinted from http://blog.csdn.net/yi412/article/details/19212335
Looking up a file in Microsoft's Windows operating system is fairly straightforward, as long as you click "Start" on the desktop-"search" to find files and documents on you
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.