Search found 79 matches

by jaracz
Tue Jun 07, 2005 7:34 pm
Forum: Volume 101 (10100-10199)
Topic: 10100 - Longest Match
Replies: 95
Views: 21835

10100 WA

Hi guys!!
Why I'm gettin' WA!!

What should be ouput for

Hello!
***

where * is white space

my prog print "1. Length of longest match: 0"

my code:

Code: Select all

look down 
by jaracz
Sat Jun 04, 2005 10:34 pm
Forum: Volume 108 (10800-10899)
Topic: 10848 - Make Palindrome Checker
Replies: 26
Views: 15148

hi guys!! I've read precisely all about this pro but i'm still gettin' WA can anyone help me? #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> #define max 10000 int isdigits(char *a) { int len = strlen(a); for(int i = 0; i < len; i++) if(!isdigit(a[i]))return 0; return 1...
by jaracz
Tue May 31, 2005 11:00 pm
Forum: Volume 102 (10200-10299)
Topic: 10260 - Soundex
Replies: 30
Views: 11304

thanks for I/O!
It was very useful for me!!;)
by jaracz
Tue May 31, 2005 10:20 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 33621

yeah man!!

You helped me so much!!
ACed now && gr8 thx!!
by jaracz
Mon May 30, 2005 11:10 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 33621

Actually, the size doesn't matter...
I can enlarge strings even to 500.000 but results are same
by jaracz
Fri May 27, 2005 11:38 am
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 33621

10340

Anyone see the reason of gettin' WA?

Code: Select all

sorry;)
Regards
by jaracz
Fri May 27, 2005 12:31 am
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 23769

consider this algo read string if(isalpha(string[0]))count++; and than in some loop until the one before last element of string(excluding '\0') if( (isspace(string ) && isalpha(string[i+1])) || (!isspace(string ) && !isalpha(string )) && isalpha(string[i+1]) ) count++; and you dont have to use long ...
by jaracz
Wed May 18, 2005 10:22 pm
Forum: Volume 4 (400-499)
Topic: 485 - Pascal's Triangle of Death
Replies: 50
Views: 5642

output for 10^20 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 1 7 21 35 35 21 7 1 1 8 28 56 70 56 28 8 1 1 9 36 84 126 126 84 36 9 1 1 10 45 120 210 252 210 120 45 10 1 1 11 55 165 330 462 462 330 165 55 11 1 1 12 66 220 495 792 924 792 495 220 66 12 1 1 13 78 286 715 1287 1716 1716 ...
by jaracz
Tue May 10, 2005 4:25 pm
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 20799

382

hi guys!

It is necessity to read in input to array?
Can I read one integer(long) and write answer, then read next and so on and on??

It is possible that input may exceed 100 and then program shouldn't print anything??

w8ing 4reply..thx in advance
by jaracz
Mon May 02, 2005 1:44 am
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 30842

I wonder 'cause i got TLE using <stdio.h> library but AC using <iostream> algo in both was the same, this's strange isn't it?:|
by jaracz
Sat Apr 16, 2005 10:55 pm
Forum: Volume 6 (600-699)
Topic: 603 - Parking Lot
Replies: 11
Views: 5267

603 reading data problem...

hey there!! How can I read data 'till blank line for instance 1 2 5 4 23 56 25 346 where it isn't said how many these integer would take place?? scanf reads to end of file, gets also(with blank line indeed), so how can I read only 1 set of integers 'till blank line, then do sth and go on reading... ...
by jaracz
Sun Apr 03, 2005 10:38 pm
Forum: Volume 4 (400-499)
Topic: 485 - Pascal's Triangle of Death
Replies: 50
Views: 5642

ou shit you're right!;] (math)
by jaracz
Sat Apr 02, 2005 4:53 pm
Forum: Volume 4 (400-499)
Topic: 485 - Pascal's Triangle of Death
Replies: 50
Views: 5642

hmmm

my program terminate at 201 line..... :[
could you tell me a condition which program should follow?
I assume that output should terminate when length of any number(string) reach 60, because as we know number equal or greater than 10^60 have at least 60 elements right?
by jaracz
Sat Apr 02, 2005 11:38 am
Forum: Volume 4 (400-499)
Topic: 485 - Pascal's Triangle of Death
Replies: 50
Views: 5642

485 WA........

Hi everyone!

In which row should output terminate??
by jaracz
Wed Feb 23, 2005 3:51 pm
Forum: Volume 2 (200-299)
Topic: 227 - Puzzle
Replies: 56
Views: 10115

yes that's right:D

I had same problem (with a blank character in first line)
cause i used scanf and after gets.
I changed scanf to gets and now it works:D

thank you shahriar_manzoor for your post!!
thank you a lot!!

ACed now:)

Go to advanced search