Q-
You receive a credit C at a local store and would like to buy two items. You first walk through the store and create a list L of all available items. From this list you would like to buy two items that add up to the entire value of the credit. The solution you provide will consist of the two integers indicating the positions of the items in your list (smaller number first).
Input
The first line of input gives the number of cases, N. N test cases follow. For each test case there will be:
  • One line containing the value C, the amount of credit you have at the store.
  • One line containing the value I, the number of items in the store.
  • One line containing a space separated list of I integers. Each integer P indicates the price of an item in the store.
  • Each test case will have exactly one solution.
Output
For each test case, output one line containing "Case #x: " followed by the indices of the two items whose price adds up to the store credit. The lower index should be output first.
Limits
5 ≤ C ≤ 1000 1 ≤ P ≤ 1000
Small dataset
N = 10 3 ≤ I ≤ 100
Large dataset
N = 50 3 ≤ I ≤ 2000
Please kindly send your solution to our G-mail account: codeseekers@gmail.com
And please specify your Name, Branch, IDE Name or Language Name and your own pic.









                          WORLD STUDENTS’ DAY


The United Nations Organization (U.N.O) declared October 15, Dr. A. P. J. Abdul Kalam's Birthday as the "WORLD STUDENTS’ DAY" and hence Ganpat University has decided to celebrate this Day every year at Ganpat Vidyanagar Campus.

On this occasion, the students will celebrate the day meaningfully with the thoughts and works of Hon. Dr. Kalam sb.


Ganpat University is going to celebrate the "WORLD STUDENTS’ DAY" on 15th October, 2015, Thursday, a full day by organizing various activities for students’ and faculties on the theme of “Learning from the Life of Dr. A.P.J. Abdul Kalam”.


In view of above, following activities/events  will be organized at Institute level on 15th October, 2015. 
(1) Elocutions    (2) Essay Writing Competition    (3) Poster Exhibition  (4) Group Day Celebration

The sports & cultural activities’ co-ordinator at Institute level will co-ordinate the above activities.













There is APJ Abdul Kalam in evrey one, just you yourself need to find it and Carve it.



Govt blocks 2 websites, FB pages for carrying IS propaganda.

On Facebook, now view good times only

Regret call drops in India, can be resolved in 6 months: Vodafone

Post offices in Madhya Pradesh will now sell mobile phones