I don't see any error in your code! It seems very good.
But i didn't understand why you put the string so huge.
I got accepted with a string with length 100.
Another thing that is good to change is your loop to write this huge string.
Put: char a[100], and change this code:
if(k==n)
{
for(i=0 ...
Search found 2 matches
- Mon Jan 06, 2003 5:30 am
- Forum: Volume 1 (100-199)
- Topic: 195 - Anagram
- Replies: 242
- Views: 59294
- Sun Jan 05, 2003 10:02 pm
- Forum: Volume 1 (100-199)
- Topic: 196 - Spreadsheet
- Replies: 42
- Views: 16467
196 : Memory Limit Exceeded
I can't find the solution for this problem.
This problem demands that you create a table with 1000 rows and 18278 columns. Whatever type I choose exceed the limit. For example, int types requires 71407kb and short int types requires 35704kb . The limit is 32768kb .
I tried to decrease the ...
This problem demands that you create a table with 1000 rows and 18278 columns. Whatever type I choose exceed the limit. For example, int types requires 71407kb and short int types requires 35704kb . The limit is 32768kb .
I tried to decrease the ...