I don't want to come off as standoffish or rude in any way, so please take this as my opinion.
It seems to me like you should be focusing on mastering your programming language before you start taking on programming problems. Once you have an idea how a problem should be solved, the translation to code should be simple. Every issue you have posted thus far seems to center around a misunderstanding regarding Python as a language.
Steven and Felix Halim published a list of 11 exercises to test your knowledge of programming languages. Please try any or all of the following -- each one should take _less than 10 lines_. If you can't for most (>6) of them, spend time reviewing programming before you jump to contest problems.
1. Read a double from STDIN. Echo it with field width 7 and 3 digits after the decimal place
2. Given an integer n (<= 15) print pi to n decimal places
3. Given a date in the form of YYYY/DD/MM, print the day of the week
4. Given m random integers, print them in sorted order
5. Given the valid birthdates of n unique people (MM/DD/YYYY) print them sorted first by ascending birth months, then ascending birth dates, then finally by age
6. Given a list of sorted integers (<= 1,000,000 integers) determine if a value L exists in the list using less than 20 comparisons
7. Generate all possible permutations of the first 10 letters of the alphabet
8. Generate all possible subsets of {0, 1, 2, ..., N-1} for N <= 20
9. Given a string representing a number in base X, convert it to base Y (2 <= X, Y <= 36)
10. Define a special word as an alphabet followed by 2 consecutive digits. Given a string replace all special words with 3 stars "***".
e.g. "line: a70 and z72 will be replaced, aa24 and a872 will not"
becomes
"line: *** and *** will be replaced, aa24 and aa872 will not"
11. Given a valid mathematical expression involving '(', ')', '+', '-', '*', '/' in a single line , evaluate that expression (e.g., 3 + (8 - 7.5) * 10 / 5 - (2 + 5 * 7) should produce -33.0, using standard operator precedence)
[semi abridged from Competitive Programming 3, a fantastic read for those looking to up their game]
One thing I've learned in the past couple months is sometimes, problems are too difficult for people. I've tried and failed problems because they were far too difficult for me at the time, then come back to them later to solve them instantly. I've also asked for help to receive an answer, never having that lightbulb moment that allowed me to do it myself the next time. One problem I'll never forget was Knapsack from HackerRank, just the unbounded knapsack problem. I worked on that for hours, until I finally had that epiphany, and suddenly I could do dynamic programming.
If there's a problem you can't solve, try one of these before posting here:
1. Make test cases. Try your own stuff! On this problem, if you try a test case like
tttttttttttttttttttttttttt
s
you might see why your code is failing.
2. Go solve something else. Read a book or watch TV for a while. Come back to the problem with a fresh mindset. Reread your code explaining not only what it does, but why the program needs it to work
3. Save it for later. Try something easier, and next time, you'll stand a better chance.
The reason your reputation is at -13 is probably because the competitive programming community prides itself (rightfully) on the ability of involved individuals to problem solve, and overcome issues. If you can't problem solve when things aren't an easy AC, asking others for help is against the spirit of the community. Asking should be your absolute-i've-worked-on-this-problem-for-days-tearing-my-hair-out-last resort.
Good luck with all your future endeavors though, and I hope you can solve this problem and many, many more to come!

I don't want to come off as standoffish or rude in any way, so please take this as my opinion.

It seems to me like you should be focusing on mastering your programming language before you start taking on programming problems. Once you have an idea how a problem should be solved, the translation to code should be simple. Every issue you have posted thus far seems to center around a misunderstanding regarding Python as a language.

Steven and Felix Halim published a list of 11 exercises to test your knowledge of programming languages. Please try any or all of the following -- each one should take _less than 10 lines_. If you can't for most (>6) of them, spend time reviewing programming before you jump to contest problems.

1. Read a double from STDIN. Echo it with field width 7 and 3 digits after the decimal place

2. Given an integer n (<= 15) print pi to n decimal places

3. Given a date in the form of YYYY/DD/MM, print the day of the week 4. Given m random integers, print them in sorted order

5. Given the valid birthdates of n unique people (MM/DD/YYYY) print them sorted first by ascending birth months, then ascending birth dates, then finally by age

6. Given a list of sorted integers (<= 1,000,000 integers) determine if a value L exists in the list using less than 20 comparisons

7. Generate all possible permutations of the first 10 letters of the alphabet

8. Generate all possible subsets of {0, 1, 2, ..., N-1} for N <= 20

9. Given a string representing a number in base X, convert it to base Y (2 <= X, Y <= 36)

10. Define a special word as an alphabet followed by 2 consecutive digits. Given a string replace all special words with 3 stars "***". e.g. "line: a70 and z72 will be replaced, aa24 and a872 will not" becomes

[semi abridged from Competitive Programming 3, a fantastic read for those looking to up their game]

One thing I've learned in the past couple months is sometimes, problems are too difficult for people. I've tried and failed problems because they were far too difficult for me at the time, then come back to them later to solve them instantly. I've also asked for help to receive an answer, never having that lightbulb moment that allowed me to do it myself the next time. One problem I'll never forget was Knapsack from HackerRank, just the unbounded knapsack problem. I worked on that for hours, until I finally had that epiphany, and suddenly I could do dynamic programming.

If there's a problem you can't solve, try one of these before posting here:

1. Make test cases. Try your own stuff! On this problem, if you try a test case like

tttttttttttttttttttttttttt

s

you might see why your code is failing.

2. Go solve something else. Read a book or watch TV for a while. Come back to the problem with a fresh mindset. Reread your code explaining not only what it does, but why the program needs it to work

3. Save it for later. Try something easier, and next time, you'll stand a better chance.

The reason your reputation is at -13 is probably because the competitive programming community prides itself (rightfully) on the ability of involved individuals to problem solve, and overcome issues. If you can't problem solve when things aren't an easy AC, asking others for help is against the spirit of the community. Asking should be your absolute-i've-worked-on-this-problem-for-days-tearing-my-hair-out-last resort.

Good luck with all your future endeavors though, and I hope you can solve this problem and many, many more to come!

Aww, it feels good to be trusted. :P
r3mark hit it on the head. However, please don't be tempted to create accounts for the sole purpose of downvoting (or upvoting). This is known as sockpuppetry, and it's banned on Wikipedia, StackExchange, and here. If we discover sockpuppets, we will take some action.

Aww, it feels good to be trusted. :P

r3mark hit it on the head. However, please don't be tempted to create accounts for the sole purpose of downvoting (or upvoting). This is known as sockpuppetry, and it's banned on Wikipedia, StackExchange, and here. If we discover sockpuppets, we will take some action.

Hey Mods, typing "++" without the "s into the problem search box yields
"Fatal error: Call to a member function result() on a non-object in /var/trunk/application/models/Problems_model.php on line 252".
I know that searching for "++" serves no particular purpose for your site, but for security purposes, I just thought I would let you know. I hope this helps, and sorry to bother you (I know you guys are busy),
Max
**Edit:** Also, the "Thank-you" page on your legacy website doesn't link properly; there is no '/legacy' in the URL it links to. Just a heads up and great job with your project!
**Edit 2:** I believe that the above is true for all of the links on the legacy site.

Hey Mods, typing "++" without the "s into the problem search box yields

"Fatal error: Call to a member function result() on a non-object in /var/trunk/application/models/Problems_model.php on line 252".

I know that searching for "++" serves no particular purpose for your site, but for security purposes, I just thought I would let you know. I hope this helps, and sorry to bother you (I know you guys are busy),

Max

**Edit:** Also, the "Thank-you" page on your legacy website doesn't link properly; there is no '/legacy' in the URL it links to. Just a heads up and great job with your project!

**Edit 2:** I believe that the above is true for all of the links on the legacy site.

A PHP Error was encountered
Severity: Warning
Message: stream_socket_client(): unable to connect to unix:///var/run/pegjudge/socket (No such file or directory)
Filename: controllers/submissions.php
Line Number: 784
An Error Was Encountered
Could not connect to grader. Your submission was not saved.
---------------------------
On submitting Python 3 code to two different problems: usacofeb15b1 ccc96p2

A PHP Error was encountered

Severity: Warning

Message: stream_socket_client(): unable to connect to unix:///var/run/pegjudge/socket (No such file or directory)

Filename: controllers/submissions.php

Line Number: 784

An Error Was Encountered Could not connect to grader. Your submission was not saved.

---------------------------

On submitting Python 3 code to two different problems: usacofeb15b1 ccc96p2

I may be misinterpreting your comment, but I'm quite sure we already do what you want. On the general submission status page, it appears on the right hand side. On the detail page (the page you go to after submission), it appears after the time taken.

I may be misinterpreting your comment, but I'm quite sure we already do what you want. On the general submission status page, it appears on the right hand side. On the detail page (the page you go to after submission), it appears after the time taken.

Sorry everyone, the judge is not going to allow submissions from 5:00 pm EST June 26 to 5:00 pm June 30 because I'm submitting an IOI problem with 5000 test cases (30 seconds each). Sorry for the inconvenience.

Sorry everyone, the judge is not going to allow submissions from 5:00 pm EST June 26 to 5:00 pm June 30 because I'm submitting an IOI problem with 5000 test cases (30 seconds each). Sorry for the inconvenience.

I think that the huge time limits for IOI problems can be really annoying for everybody else. If someone submits a really inefficient algorithm, it can literally take 20 mins for the judge to complete all 100 or so test cases. Maybe you can put something to cut off the judge after 3 TLE's in a row or something like that?

I think that the huge time limits for IOI problems can be really annoying for everybody else. If someone submits a really inefficient algorithm, it can literally take 20 mins for the judge to complete all 100 or so test cases. Maybe you can put something to cut off the judge after 3 TLE's in a row or something like that?

I was trying to access PEG during the day, but it gave me error messages. However, it suddenly worked right now... Did anyone get the same problem or was it because my computer didn't function properly...

I was trying to access PEG during the day, but it gave me error messages. However, it suddenly worked right now... Did anyone get the same problem or was it because my computer didn't function properly...