Search found 15 matches

by Lim.YuDe
Thu Apr 23, 2015 3:06 am
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 24112

Re: 543 - Goldbach's Conjecture

The input is up until 1000000 (10^6) but your code takes input until 100000 (10^5) only.
by Lim.YuDe
Fri Mar 06, 2015 3:39 pm
Forum: Volume 10 (1000-1099)
Topic: 1048 - Low Cost Air Travel
Replies: 2
Views: 1301

Re: 1048 - Low Cost Air Travel

Thanks for your reply dibery. My bad that the input doesn't lead to a unique solution. However, I am printing the tickets; otherwise I would not be printing a 19 (no city has id 19 in case 3). Would you happen to have any input? I would be much obliged. I've tried a few test cases but I can't seem t...
by Lim.YuDe
Mon Mar 02, 2015 4:06 pm
Forum: Volume 10 (1000-1099)
Topic: 1048 - Low Cost Air Travel
Replies: 2
Views: 1301

Re: 1048 - Low Cost Air Travel

I used dijkstra and stored the path history to get to each state (city, cost) in order to print the path. I am getting correct output for my test cases including the given sample test cases, but TLE when submitting it to the judge :( I think the TLE is not due to the algorithm but due to the way I s...
by Lim.YuDe
Sun Feb 08, 2015 6:23 pm
Forum: Volume 11 (1100-1199)
Topic: 1105 - Coffee Central
Replies: 0
Views: 740

Re: 1105 - Coffee Central

EDIT: Got AC. Found the corner case when I had max-sized (1000x1000) array. Will just leave my test cases here for anyone who needs them. They are AC output :) Getting WA although I pass the sample test cases, and some of my own corner cases. Does anybody have other corner cases for Coffee central o...
by Lim.YuDe
Sat Jan 17, 2015 6:54 am
Forum: Volume 114 (11400-11499)
Topic: 11402 - Ahoy, Pirates!
Replies: 45
Views: 15547

Re: 11402 - Ahoy, Pirates!

Using segment tree with lazy propagation, but still getting TLE. Any help would be greatly appreciated! EDIT: edited the code to implement lazy propagation properly, and I have no TLE now but I get RTE instead.. which is weird because I don't get that error when I test my super large input. I must b...
by Lim.YuDe
Fri Jan 16, 2015 3:32 am
Forum: Volume 10 (1000-1099)
Topic: 1091 - Barcodes
Replies: 3
Views: 3236

Re: 1091 - Barcodes

I pass the sample input test cases and I am quite certain (using a few other test cases) I handled the requirements of the problem fully, but I am still getting WA. Any ideas, anyone? #include <bits/stdc++.h> using namespace std; #define REP(a, b, c) \ for (int a = int(b); a < c; a++) const int STAR...
by Lim.YuDe
Wed Jan 14, 2015 3:48 am
Forum: Volume 10 (1000-1099)
Topic: 1047 - Zones
Replies: 17
Views: 5696

Re: 1047 - Zones

Got AC. Thank you so much Brianfry. I need to read the output format better next time.
by Lim.YuDe
Wed Jan 14, 2015 3:48 am
Forum: Volume 106 (10600-10699)
Topic: 10660 - Citizen attention offices
Replies: 20
Views: 6975

Re: 10660 - Citizen attention offices

Got AC. Thank you so much Brianfry. I really need to learn to do better testing.
by Lim.YuDe
Tue Jan 13, 2015 5:58 pm
Forum: Volume 10 (1000-1099)
Topic: 1047 - Zones
Replies: 17
Views: 5696

Re: 1047 - Zones

When I run this on my compiler the following code works with 0 errors and 0 warnings, but when I submit it I get Compilation Error. Any idea why I get CE for this code? EDIT: FIXED Compilation Error, but now I get WA. I have tested the input kindly posted here by Brianfry, and also the sample input ...
by Lim.YuDe
Tue Jan 13, 2015 2:31 pm
Forum: Volume 106 (10600-10699)
Topic: 10660 - Citizen attention offices
Replies: 20
Views: 6975

Re: 10660 - Citizen attention offices

Hi, I've looked at all of the posts and I've tried all of the input/output posted + more (and checked with uDebug to see if input/output matches), but to no avail.
I'm still getting WA.

If anybody can tell me what is wrong with my code I'd be really grateful :)

Code: Select all

Removed after AC
by Lim.YuDe
Thu Dec 18, 2014 3:16 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 79268

Re: 10038 - Jolly Jumpers

Thank you Brianfry713! Just got AC!
by Lim.YuDe
Wed Dec 17, 2014 5:09 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 79268

Re: 10038 - Jolly Jumpers

I have looked at many posts in this thread and tried all sample input, and also tried the critical input as given on udebug.com, and although I pass all this input I get WA when I submit my code.. does anybody have any idea?

Code: Select all

    Removed after AC
by Lim.YuDe
Sun Dec 14, 2014 6:38 am
Forum: Volume 106 (10600-10699)
Topic: 10646 - What is the Card?
Replies: 17
Views: 6418

Re: 10646 - What is the Card?

My code outputs all 8H, the same as the AC code of Mushfiqur Rahman and brianfry713. My code also outputs the output given by UFP2161 for that given input. However, I still get WA. Can anybody help me see what is going wrong here? Edit after AC: Got AC after excluding 2 and 9. "Between 2 and 9" mean...
by Lim.YuDe
Sat Dec 13, 2014 6:35 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 26699

Re: 195 - Anagram

lighted, thank you.

I did go through the first 2 pages but it seemed like most people were having a problem different from mine, but sorry for making the newbie move of posting too quickly! I will be careful to check the input in the thread more thoroughly in the future!
by Lim.YuDe
Sat Dec 13, 2014 1:43 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 26699

Re: 195 - Anagram

Not sure what is wrong with my code. (Please see below for the code) I keep getting Wrong Answer even though it seems to work fine even on long strings with duplicate characters. Also, I have tested my output with the given sample input: 3 aAb abc acba and achieved the sample output: Aab Aba aAb abA...

Go to advanced search