Search found 15 matches

by nev4
Wed Aug 30, 2006 5:56 pm
Forum: C++
Topic: vector<string> MLE ~50MB
Replies: 1
Views: 1564

vector<string> MLE ~50MB

In all problems where i try to use this i get Memory Limit Exceeded. I clear vector for every next case, but no effect. I'm used to get 49632 kilobytes (as tried deque instead were ~33MB) in every problem when i'm using this combo, even if problem description guarantees only up 6MB (100 strings * 60...
by nev4
Tue Aug 22, 2006 11:19 pm
Forum: Off topic (General chit-chat)
Topic: How to stop OJ sending me emails?
Replies: 1
Views: 2179

How to stop OJ sending me emails?

How, he sends everytime it receives my code and one more time for giving results for my code.
by nev4
Tue Aug 22, 2006 11:17 pm
Forum: Off topic (General chit-chat)
Topic: I win !!
Replies: 361
Views: 123452

I'm winning right now till next reply
by nev4
Sun Aug 20, 2006 9:51 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20479

My AC code gives this:

4 37
LOOPS FOREVER
3280 242461

loops forever - should be wrong input.
by nev4
Sun Aug 20, 2006 10:30 am
Forum: C++
Topic: string::clear()
Replies: 1
Views: 1604

string::clear()

why does judge for string::clear() gives CE(forced to use string::erase() which is more expensive(?))? Should i include more than <string>? Is size_t same as string::size_type used for string::npos?
by nev4
Thu Aug 17, 2006 9:10 pm
Forum: Volume 1 (100-199)
Topic: 120 - Stacks of Flapjacks
Replies: 118
Views: 13431

using pointers and arrays(which are pointers too) causes this(if u try to access memory u shouldn't to).
by nev4
Wed Aug 16, 2006 5:00 pm
Forum: Volume 1 (100-199)
Topic: 136 - Ugly Numbers
Replies: 156
Views: 18401

This problem is easy. You just have to run one loop and check inside if loop counter only divides 2, 3, 5 if so add one to UGLYNR counter(using while and % is easiest).
When u get 1500th just output it according to problem sample output, insert that number and just print out that one statement.
by nev4
Wed Aug 16, 2006 4:50 pm
Forum: Volume 101 (10100-10199)
Topic: 10106 - Product
Replies: 98
Views: 27245

This one is really in judge input:

000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000

or

0000000000000000000000000000000000000000000000000
4566515645624562456254625462542642434323432343341
by nev4
Wed Aug 16, 2006 9:22 am
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 21224

147 WA, output?

For this problem i generate table, is my output right(not formatted here)?(but i get WA, does only formatting cause WA) 0.05 1 0.45 9 3.95 2492 16.00 938319 125.00 228222517456 299.95 171788022101831 300.00 174088264125464 Also i have did another problem(160), but i get WA too. http://acm.uva.es/boa...
by nev4
Tue Aug 15, 2006 4:08 pm
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 12131

if u get RE u probably get outside of array bounds
by nev4
Mon Aug 14, 2006 10:09 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 24660

825 could be specified as (0 1 2 0 1) meaning no twos, 1 three, 2 fives, no sevens and 1 eleven. This problem is so easy to solve, but I don't know why WA, even if I think it works just fine. Anyone can help me? #include <iostream> #include <vector> #include <iterator> #include <cmath> #include <iom...
by nev4
Wed Aug 09, 2006 4:34 pm
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 12131

ah, the triple cant have the same dividers... It's hard to get right meaning.
by nev4
Wed Aug 09, 2006 4:27 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 27782

This code is so big and it uses pointers to pointers, there is no wonder why RE. Try to code even without pointers if possible.
My solution for this to examine all blocks in a row and test if next is over current, if not test it comes from current's side, if not, does begin new block.
by nev4
Wed Aug 09, 2006 4:20 pm
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 12131

Hi,
i found 13 of them as N = 100, too.
10) 56 33 65
12) 16 63 65
15) 36 77 85
These don't belong, do they?
33 = 11 * 3; 65 = 5 * 13;
63 = 7 * 9;
77 = 11 * 7; 85 = 5 * 17;
what's wrong here?
by nev4
Sun Apr 30, 2006 10:26 am
Forum: Volume 103 (10300-10399)
Topic: 10315 - Poker Hands
Replies: 63
Views: 27325

Thx, Jan for sample input. It revealed that i have used > instead of < in one place of code.

Go to advanced search