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
The Tremor Vorbis I stream and file decoder provides an embeddable, INTEGER-only library [libvorbisidec] intended for decoding all current and future Vorbis I compliant streams. The Tremor libvorbisidec library exposes an API intended to be as similar as possible to the familiar vorbisfile library included with the open source Vorbis reference libraries distributed for free by Xiph.org.
Tremor can be used along with any ANSI compliant stdio implementation for file/stream access, or use custom stream i/o routines provided by the embedded environment. Both uses are described in detail in this documentation.
The Tremor Vorbis I stream and file decoder provides an embeddable, INTEGER-only library [libvorbisidec] intended for decoding all current and future Vorbis I compliant streams. The Tremor libvorbisidec library exposes an API intended to be as similar as possible to the familiar vorbisfile library included with the open source Vorbis reference libraries distributed for free by Xiph.org.
ogg vorbis decoder, evc project
Tremor can be used along with any ANSI compliant stdio implementation for file/stream access, or use custom stream i/o routines provided by the embedded environment. Both uses are described in detail in this documentation.
Implement the following INTEGER methods:
a) Method celsius returns the Celsius equivalent of a Fahrenheit calculation
celsius = 5.0 / 9.0 * ( fahrenheit - 32 )
b) Method fahrenheit returns the Fahrenheit equivalent of a Celsius the calculation
fahrenheit = 9.0 / 5.0 * celsius + 32
c) Use the methods from parts (a) and (b) to write an application either to enter a Fahrenheit temperature and display the Celsius or to enter a Celsius temperature and display the Fahrenheit equivalent.
This sample displays a basic INTEGER calculator powered
by the 8051 microcontroller. Although Keil C51 has a
full floating point math library the evaluation version
is restricted to 2k of object code, so we have constrained
this sample to INTEGER maths in order to fit within this limit.
The program for this design was written in C using the
Keil uVision 2 IDE for which Proteus VSM provides
a Debug Monitor driver.
Instructions for configuring Proteus to run in conjunction
with the Keil environment can be found by editing the
8051 microcontroller on the schematic (point at it and
press CTRL-E) and then clicking on the help button
on the Edit Component dialogue form.