hello........................................
any body hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Search found 2 matches
- Wed Aug 18, 2010 8:21 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 110315
- Sat Aug 14, 2010 8:52 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11776 - Oh Your Royal Greediness!
- Replies: 4
- Views: 3458
Re: 11776 - Oh Your Royal Greediness!
Can anyone tell me what's the problem with the following code? I why wrong answer??. #include<stdio.h>
int main()
{
long int i,n,j,temp,p=-1;
long int c=0;
scanf("%lld",&n);
while(n!=-1)
{
long int a[1004][3]={0},top=0,max=0,k,b[1004]={0};
c=c+1;
for(i=0;i<n;i++)
{
scanf("%ld%ld",&a[i ...
int main()
{
long int i,n,j,temp,p=-1;
long int c=0;
scanf("%lld",&n);
while(n!=-1)
{
long int a[1004][3]={0},top=0,max=0,k,b[1004]={0};
c=c+1;
for(i=0;i<n;i++)
{
scanf("%ld%ld",&a[i ...