Search found 4 matches

by duleb
Wed Oct 31, 2007 2:19 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 110415

Somebody help me out
Im getting RTE and i cant figure out why

about my program
ques[][] is used to store the elments corresponding to each block 0 .. n-1
number[] store num of elements in each block
fin[] store the position of each element
for eg element a is present at block fin[a]

PLZ help me ...
by duleb
Mon Oct 29, 2007 12:16 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 110415

101 Plz Help

Im starting a new thread since previous threads are not getting response

Here is my code

#include<stdio.h>
#include<stdlib.h>
#include<string.h>


int fin[30],number[30],ques[50][50],n;

int show()
{
int i,j;
for(i=0;i<n;i++)
{
printf("%d:",i);
for(j=0;j<number ;j++)
printf(" %d",ques [j ...
by duleb
Sat Aug 11, 2007 6:57 pm
Forum: Java
Topic: Restricted Function
Replies: 1
Views: 3069

Restricted Function

My code is showing USE OF RESTRICTED FUNCTION
somebody please help ; here is the code

import java.io.*;
import java.util.*;

class Main{

public static void main(String args[]) throws IOException
{
fun_125 ob = new fun_125();
String s1[] = new String[50];
String s2[] = new String[50];
String ...
by duleb
Mon Jun 11, 2007 8:14 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 52205

Prob 108 :Time Limit Exceeded :Please Help

the source code is

#include<iostream>
using namespace std;
main()
{
int f=0,s=0;
short int a[90][90],i,j=0,k=0,m=0,x,y,n=0;
cin>>n;
for(x=0;x<n;x++)
for(y=0;y<n;y++)
cin>>a[x][y];
x=0;
while( k<=n)
{
for(i=m;i<n;i++)
for(j=0;j<=x;j++)
{
f+=a [j];
if(f>s)
s=f;
}
if(i==n)
{
x++; f=0 ...

Go to advanced search