#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int t,v,a[10000],i,j,sum,n,k,l,u,m,c;
ifstream in ("input.txt");
ofstream out ("output.txt");
in>>t;
for(i=1;i<=t;i++)
{
in>>v>>n;
c=0;
for(m=1;m<=n;m++)
{
in>>a[m];
}
for(j=1;j<=n;j++)
{
for(k=j+1;k<=n;k++)
{
if(a[j]+a[k]==v)
{
l=j;
u=k;
break;
}
}
}
out<<"Case #"<<i<<":"<<" "<<l<<" "<<u<<endl;
}
return 0;
}
A small, light and portable wireless credit card machine is one of those wonderful inventions which make business interaction of today so comfortable for both buyers and sellers. Needless to say, if your business is not static and requires mobility, such item is one of the most essential things for your company to have. Free Credit Card Processing
ReplyDeleteA small, light and portable wireless credit card machine is one of those wonderful inventions which make business interaction of today so comfortable for both buyers and sellers. Needless to say, if your business is not static and requires mobility, such item is one of the most essential things for your company to have. Tellthebell
ReplyDelete