Input
The first LINE of the input contains a single integer T (1 <= T <= 20), the number of test cases. Then T cases follow. The first LINE of each case contains N, and the second LINE contains N integers giving the time for each people to cross the river. Each case is preceded by a blank LINE. There won t be more than 1000 people and nobody takes more than 100 seconds to cross.
Output
For each test case, print a LINE containing the total number of seconds required for all the N people to cross the river.
Sample Input
1
4
1 2 5 10
Sample Output
17
Input
The input contains blocks of 2 LINEs. The first LINE contains the number of sticks parts after cutting, there are at most 64 sticks. The second LINE contains the lengths of those parts separated by the space. The last LINE of the file contains zero.
Output
The output should contains the smallest possible length of original sticks, one per LINE.
Sample Input
9
5 2 1 5 2 1 5 2 1
4
1 2 3 4
0
Sample Output
6
5
Input
The input consists of two LINEs. The first LINE contains two integers n and k which are the lengths of the array and the sliding window. There are n integers in the second LINE.
Output
There are two LINEs in the output. The first LINE gives the minimum values in the window at each position, from left to right, respectively. The second LINE gives the maximum values.
Sample Input
8 3
1 3 -1 -3 5 3 6 7
Sample Output
-1 -3 -3 -3 3 3
3 3 5 5 6 7
Make and answer phone calls
Detect tone and pulse digit from the phone LINE
Capture Caller ID
Support blind transfer, single-step transfer/conference, consultation transfer/conference, hold, unhold.
Control of the local phone handset, microphone and speaker of the modem
Send and receive faxes
Play and record on the phone LINE or sound card
Play music in background mode
Silence detection
VU Meter
Wave sound editor that allows your end-users to edit their own sound files.
Voice recognition and voice synthesis.
Full control over the serial port device
ZModem file transfer utility
File compression and encryption utility
TI DSP2812 can總線程序,可以用這個程序設計can總線收發數據,已經在自己的開發板上測試過,運行良好-TI DSP2812 the can main LINE procedure, may use this programming can main LINE receiving and dispatching data, has already tested on own development board, the movement is good