hacker.org Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Confused on what a challenge is asking?
Goto page Previous  1, 2, 3, 4  Next
 
Reply to topic    hacker.org Forum Index » Challenges View previous topic
View next topic
Confused on what a challenge is asking?
Author Message
Project hash brown



Joined: 26 Jan 2009
Posts: 17

Post Reply with quote
Thank you, i wasn't counting the 2 when i went back two places, i jumped straight back to the 3 again
Thu Jan 29, 2009 8:19 pm View user's profile Send private message
cyberwoozle



Joined: 07 Nov 2008
Posts: 60
Location: Germany

Post Reply with quote
What is a 8411 ???
I don't want any hint or solution, but the challenge name is "Like a 8411" and i have no idea about what a 8411 could be Rolling Eyes

Found it .... had to think outside the box Very Happy


Last edited by cyberwoozle on Wed Apr 08, 2009 8:44 pm; edited 1 time in total
Tue Mar 10, 2009 7:06 pm View user's profile Send private message
cutter



Joined: 12 Jan 2009
Posts: 17

Post Reply with quote
In the "Didactic Scrambled Egg Cipher Pre-Warmup Challenge"-challenge does " for (int eggs = {each 3-byte tuple in plaintext}) " mean that i should consider 000102, 030405 ,060708 or 000102,010203, 020304 ... for the plaintext 00010203040506070809 in hex?
Mon Apr 06, 2009 8:19 am View user's profile Send private message
Yharaskrik



Joined: 05 Nov 2008
Posts: 31
Location: Germany

Post Reply with quote
It means your first guess, i.e. 000102, 030405, ...
Mon Apr 06, 2009 9:19 am View user's profile Send private message
hitman412



Joined: 15 Apr 2009
Posts: 1

Post Reply with quote
Hello! My name is Hitman Very Happy This is a cool website!!!
Hi Jack
Wed Apr 15, 2009 10:52 pm View user's profile Send private message
soulness



Joined: 27 Oct 2008
Posts: 11
Location: //Europe/Ukraine/Kharkov

Post Reply with quote
hitman412 wrote:
Hello! My name is Hitman Very Happy This is a cool website!!!
Hi Jack


Hi Hit) welcome
I think all are glad to see new people, success in tests and competitions.
Enjoy Wink
Wed Apr 15, 2009 10:57 pm View user's profile Send private message ICQ Number
Moltress



Joined: 11 Jun 2009
Posts: 2

Post Reply with quote
hi guys!im new member! Very Happy Very Happy Very Happy Very Happy

where are the chalenges??????

_________________
Hack is the best thing in the world but its illegal!!!!
DAMNNNNNNNNNNNN!!!!!!!!!!!!!!!!!!!!!
Thu Jun 11, 2009 9:27 am View user's profile Send private message
jeetee



Joined: 04 Jan 2009
Posts: 105

Post Reply with quote
Moltress wrote:
where are the chalenges??????

On the homepage, but they're hard to find because on this site it's spelled as challenges Shocked

Also: fail @ your siggy
Thu Jun 11, 2009 10:38 am View user's profile Send private message
horst



Joined: 06 Mar 2009
Posts: 24
Location: Germany

Post Anybody Out There? Reply with quote
I have absolutely no idea what the challenge "Anybody Out There?" is asking for Question
Thu Jul 09, 2009 1:18 pm View user's profile Send private message
gfoot



Joined: 05 Sep 2007
Posts: 269
Location: Brighton, UK

Post Reply with quote
There should be no doubt about the right answer for Anybody Out There - if you work out what the numbers mean then it will be obvious.
Thu Jul 09, 2009 9:49 pm View user's profile Send private message
Masti6



Joined: 15 May 2010
Posts: 55
Location: Finland, Nurmes

Post Feeling desperate about the Valuation Challenge Reply with quote
Hi everyone. I've been trying to debug the following *Python26* code for the challenge Valuation for about 2 days now, without succession:

Code:

main = [1,2,3,'x','x',4,5,6]
counter = 0
lenght = len(main)
total = 0
while counter < lenght:
    if main[counter] == "'x'":
        main.remove(counter)
        counter = counter - 2
    else:
        total = total + main[counter]
        counter = counter + 1
if counter == lenght:
    print total

Am I making the right approach with the "'x'", or should I just store x = 0 at the start and take 'these' off the ones on the main list?
Also, on:
Code:

    else:
        total = total + main[counter]

It gives me an error:
Quote:
TypeError: unsupported operand type(s) for +: 'int' and 'str'

What I do understand of this error is that I cannot add a string to a total sum, but I have no idea for to make it work even with the int() operator/variable. Trying to wrap the line, a part of the line, or even only a word in the line doesn't seem to do the trick. I just can't seem to be able to change a string into int and vice versa.
Should I instead define the int() and str() already in the list to make it work or does someone have a brighter idea?

I just can't seem to understand how I'm able to fail at something as simple as this. Might be that I'm new to the language anyways but...

Thanks in advance!
Tue May 18, 2010 10:20 am View user's profile Send private message MSN Messenger
Arkondi



Joined: 27 Jan 2010
Posts: 3
Location: Germany

Post Reply with quote
I'm using Python 3.1, but I think the way you are using remove is wrong. I suggest you take a look into the documentation for the correct use of remove.

And why do you use an if-statement at the end?
Tue May 18, 2010 11:03 am View user's profile Send private message
Masti6



Joined: 15 May 2010
Posts: 55
Location: Finland, Nurmes

Post Reply with quote
Arkondi wrote:
I'm using Python 3.1, but I think the way you are using remove is wrong. I suggest you take a look into the documentation for the correct use of remove.

And why do you use an if-statement at the end?

to print out the total only when the counter is the same as lengTH (omglol typo on teh code) of the original main list - aka when it meets the end of the list.
Tue May 18, 2010 11:52 am View user's profile Send private message MSN Messenger
Zeta



Joined: 16 Apr 2009
Posts: 62

Post Reply with quote
Try to understand the following interactive python session.
After that review your code again.
Code:
Python 2.6.2 (r262:71600, Mar 29 2010, 15:30:01)
[GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = [1,2,3,'x','x',4,5,6]
>>> type(a[0])
<type 'int'>
>>> type(a[3])
<type 'str'>
>>> a.remove(4)
>>> a
[1, 2, 3, 'x', 'x', 5, 6]
>>> del a[3]
>>> a
[1, 2, 3, 'x', 5, 6]
>>> len("'x'")
3
>>> "'x'"[2]
"'"
>>> len(a)
6
>>> a.remove(6)
>>> len(a)
5
>>> b = int('6')
>>> b
6
>>> type(b)
<type 'int'>
>>> c = str(b)
>>> c
'6'
>>> type(c)
<type 'str'>
>>>

Tue May 18, 2010 2:15 pm View user's profile Send private message
bodjo



Joined: 26 Feb 2011
Posts: 37
Location: tunisia

Post Reply with quote
well i can't understand what the 'delegates' challenge is asking for:it seems easy but i can't understand it Embarassed
may be because english is my 3rd langage
i'll appreciate any help
Tue Mar 29, 2011 1:24 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    hacker.org Forum Index » Challenges All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.