Search found 9 matches

by spider_6765
Mon Aug 13, 2007 2:01 am
Forum: Volume 2 (200-299)
Topic: 285 - Crosswords
Replies: 16
Views: 9380

TLE with 285

why am i getting TLE? how can I improve the timing? #include<stdio.h> #include<string.h> #define MAX 1000 void place(); void init(int w,int h); void check(); char array[1000][1000],word[1000][1000],dir[1000]; int point[1000][2],num_of_words,w,h; int main(){ //freopen("input.txt","r",stdin); int i; w...
by spider_6765
Sun Jul 22, 2007 1:30 pm
Forum: Volume 5 (500-599)
Topic: 551 - Nesting a Bunch of Brackets
Replies: 56
Views: 12675

can i hav some more inputs

can i have some more inputs for this problem.

Code: Select all

removed after AC
by spider_6765
Sat Jul 21, 2007 9:32 pm
Forum: Volume 3 (300-399)
Topic: 355 - The Bases Are Loaded
Replies: 74
Views: 23444

can 'unsigned long long' can hold the value of 9999999999(decimal)?
by spider_6765
Thu Jul 19, 2007 5:27 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 48767

your code doesn't show the right outputs for this inputs

Code: Select all

4
(])
[)]
[)))]
[[)]
by spider_6765
Thu Jul 19, 2007 5:20 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 48767

using bool as a variable will result in compile error. change 'bool' into 'boool' or 'booool' or anything else. :lol: n e way.. you will get a WA once you correct this problem. check your algo to solve it. and remember... DONOT use int, long, double etc as variable NAMES because these are variable T...
by spider_6765
Thu Jul 19, 2007 5:09 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 48767

try this input set. May be its with your algorithm...
your code generates wrong output for these inputs.
for everycase in the following input set your code should print No
4
(])
[)]
[)(]
[))((]
(]][[)
by spider_6765
Thu Jul 19, 2007 3:06 pm
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 32993

Hedge the input set you are trying with is not a correct one this is your input set: 5 3 1 2 32.0 54.7 -2 4 1 3 2 - 9.1 + 3. .9 .7 1 2 3 .1.2.3 4 3 2 1 -7.+.3.9 9.9 1 2 1.2.3 the correct one should be: 5 3 1 2 32.0 54.7 -2 <-a blank line here 4 1 3 2 <-there is no such case, since the second string ...
by spider_6765
Wed Sep 27, 2006 1:16 pm
Forum: Volume 4 (400-499)
Topic: 478 - Points in Figures: Rectangles, Circles, Triangles
Replies: 44
Views: 11035

still wrong answer 478

i corrected it with EPS
still no success... can n e one help me?

Code: Select all

   thanx i got accepted
by spider_6765
Tue Feb 07, 2006 4:30 pm
Forum: Volume 109 (10900-10999)
Topic: 10930 - A-Sequence
Replies: 102
Views: 34000

10930 (memory limit exceeded) someone please help me

should i try with a larger array? or a different algo? :( /*************************************************************/ /* MCA03901 SPIDER 7/2/06 */ /*************************************************************/ #include<stdio.h> #define MAX 1000000 long long int array[MAX],d,seq[MAX],add[MAX],i,...

Go to advanced search