Title |
User |
Message |
Date Posted |
Re: Why wouldn't this work(RUBY Solution) |
jargon |
The input is on multiple lines... Also, please refrain from writing actual code in comments. Admins (and in fact, people who've solved the problem) are able to look at your submissions and decide to ... |
Oct 02, 2015 - 7:44:44 pm UTC |
Why wouldn't this work(RUBY Solution) |
zakomon |
http://wcipeg.com/submissions/src/308766 |
Oct 02, 2015 - 7:22:17 am UTC |
Re: sorting |
jargon |
If your goal is to get points, then sure! If your goal is to learn how to sort, then maybe not so much ... |
Mar 07, 2015 - 2:36:33 am UTC |
sorting |
mharis |
Python 2's list.sort() is the best method |
Mar 06, 2015 - 9:35:02 pm UTC |
Re: Re: What kind of data does case #2 include ?? |
zzh8829 |
omg... i did totally wrong... thx :) |
Aug 05, 2012 - 2:32:32 pm UTC |
Re: What kind of data does case #2 include ?? |
jargon |
9 8 7 6 5 4 1 2 3 10 10 3 2 3 4 1 4 should actually be sorted to become 1 1 2 2 3 3 3 4 4 4 5 6 7 8 9 10 10 |
Aug 05, 2012 - 4:25:14 am UTC |
What kind of data does case #2 include ?? |
zzh8829 |
I have used two different way to sort the integers; all passed case #1; but both got 4 in case #2? how is this happened? sort: 9 8 7 6 5 4 1 2 3 10 10 3 2 3 4 1 4 to: 1 2 3 4 5 6 7 8 9 10 i think the... |
Aug 04, 2012 - 10:13:42 pm UTC |
Re: Re: About the input file of the question |
ImbaCalvin |
thank you... |
Apr 22, 2012 - 10:23:52 pm UTC |
Re: Re: About the input file of the question |
jargon |
I've looked at each of your submissions, and aside from the first, which got WA for output format but nothing else, you've always kept a line that filters out numbers that you've already seen. Specif... |
Apr 22, 2012 - 5:17:54 pm UTC |
Re: Re: About the input file of the question |
ImbaCalvin |
I did the remove the same number part, and I got OK for the first test case which contains the same number too... |
Apr 22, 2012 - 12:31:15 pm UTC |