Programming 1

Put your programming skills to the test in these challenges.

Re: Permanent Programming 1

Post by Damascus2k8 on Fri May 23, 2008 10:36 pm
([msg=3117]see Re: Permanent Programming 1[/msg])

wolfganga wrote:Well, my problem is not about the problem itself. I want to make a program (a javascript injection is ok for me too) that read the html page and parse and search it for the ten words I need and then do things with it to produce an string that I just need to paste in the box and then it do the pasting work for me! That means I need only a click to start the program and another to hit the submit button.
May be it is not necessary for this mission, but there are missions giving you onlt 3 seconds.
If anyone wants to help please let me know which functions,commands,topics etc I need to know about.(I know no one gives out a spoiler ;D) I use php, C++, Javascript to solve problems. :oops:


Well for the automation part i would probably recommend using php sockets (the best tutorials are probably at php.net), after that it shouldn't take more than about...oooh....0.2sec! :lol:


C0362AF19B89E861F21485CE1D2B430E



"Change your thoughts and you change your world!"
Damascus2k8
Experienced User
Experienced User
 
Posts: 68
Joined: Mon Apr 14, 2008 8:18 pm
Location: /root
Blog: View Blog (0)


Re: Permanent Programming 1

Post by z9z on Tue May 27, 2008 12:53 pm
([msg=3331]see Re: Permanent Programming 1[/msg])

I am wondering if i could use pascal or not for this ... i only know pascal's and basic php...
z9z
New User
New User
 
Posts: 3
Joined: Tue May 27, 2008 10:03 am
Blog: View Blog (0)


Re: Permanent Programming 1

Post by whitegnome on Tue May 27, 2008 1:08 pm
([msg=3333]see Re: Permanent Programming 1[/msg])

z9z wrote:I am wondering if i could use pascal or not for this ... i only know pascal's and basic php...


You may use any programming language you want to.
I personally did it with a PHP script, takes no more than 50 lines :)
whitegnome
New User
New User
 
Posts: 4
Joined: Mon May 26, 2008 11:57 pm
Blog: View Blog (0)


Re: Permanent Programming 1

Post by TheMindRapist on Tue May 27, 2008 4:43 pm
([msg=3345]see Re: Permanent Programming 1[/msg])

Why do some topics get the lightening bolt?
Image
User avatar
TheMindRapist
Contributor
Contributor
 
Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)


Re: Permanent Programming 1

Post by lambda0 on Sun Jun 01, 2008 9:42 am
([msg=3888]see Re: Permanent Programming 1[/msg])

Lightning bolt = popular topic
User avatar
lambda0
New User
New User
 
Posts: 20
Joined: Sun May 04, 2008 7:00 am
Blog: View Blog (0)


Re: Programming 1

Post by SuperScience on Wed Jun 04, 2008 5:49 pm
([msg=4015]see Re: Programming 1[/msg])

flapchunk wrote:I've written a program that takes the scrambled strings and outputs the unscrambled strings as comma separated values.

Example: word1,word2,word3,...,word10

However it still says my answer is wrong. Is it broken am I missing somthing?

I just wrote a script and got the same problem. It puzzled me for a moment, then I noticed that my script was returning them out of order. The words have to be entered in the same order they are given, once I fixed my script it worked flawlessly!
SuperScience
New User
New User
 
Posts: 4
Joined: Fri May 30, 2008 11:36 am
Blog: View Blog (0)


Re: Programming 1

Post by Rijnzael on Wed Jun 04, 2008 9:49 pm
([msg=4024]see Re: Programming 1[/msg])

Like other posters have said, this mission is working fine. The most frequent issues people run into with it is returning the words in the wrong order and leaving a trailing comma in the string.
Rijnzael
Poster
Poster
 
Posts: 164
Joined: Sun Apr 13, 2008 10:12 am
Location: 128.0.0.0/8
Blog: View Blog (0)


Re: Programming 1

Post by zahrim on Fri Jun 06, 2008 9:24 am
([msg=4123]see Re: Programming 1[/msg])

I wrote mine in Visual Basic, but I had a problem with how the words were set up on the website.

Every word except the first one had a space before the word, so my program didn't unscramble the first word.

However this had the most simple solution: add a space before the first word, so it follows the pattern, and voilà.
Basic: (1)..(10)
Realistic: (1)..(5)
Application: (1) (2)
Programming: (1)
Javascript: (1)..(6)
Logic: (1)..(25)
zahrim
New User
New User
 
Posts: 1
Joined: Fri Jun 06, 2008 9:20 am
Blog: View Blog (0)


Re: Permanent Programming 1

Post by tio on Sat Jun 07, 2008 10:03 am
([msg=4185]see Re: Permanent Programming 1[/msg])

z9z wrote:I am wondering if i could use pascal or not for this ... i only know pascal's and basic php...
yes, you can. Pascal can work with files, so there is problem only with inserting the words, because you do not have enough time for rewrite every.
tio
New User
New User
 
Posts: 22
Joined: Tue May 13, 2008 11:01 am
Location: Slovakia
Blog: View Blog (0)


Re: Permanent Programming 1

Post by Junke1990 on Thu Jun 12, 2008 8:19 am
([msg=4593]see Re: Permanent Programming 1[/msg])

does anyone got some tips how to do it with pascal/delphi???
Junke1990
New User
New User
 
Posts: 1
Joined: Tue May 20, 2008 2:28 am
Blog: View Blog (0)


PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests