Noob cipher

Discuss about the puzzles, but without giving the solutions please !!!

Re: Noob cipher

Postby rocker » Sat Jan 22, 2011 11:31 pm

I checked with all possibilities. it still showing the same error.
May be you should check.
User avatar
rocker
 
Posts: 4
Joined: Sat Jan 22, 2011 10:48 am

Re: Noob cipher

Postby admin » Sun Jan 23, 2011 12:57 am

Rocker, I checked. It's a bug in your code, I let you find it.
Hint: be careful with newlines and also with extra-spaces after the closing tags in PHP...
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Noob cipher

Postby Yu-chiuan Huang » Mon Jan 24, 2011 10:02 pm

Why I pass the verification but failed in submition?
User avatar
Yu-chiuan Huang
 
Posts: 2
Joined: Mon Jan 24, 2011 8:55 pm

Re: Noob cipher

Postby davidb » Tue Jan 25, 2011 12:17 am

Submission runs a lot of tests (see unit tests below the source code editor), verification just runs the test given in example.
User avatar
davidb
 
Posts: 24
Joined: Thu Dec 23, 2010 1:55 am

Re: Noob cipher

Postby Imam Pradana » Tue Jan 25, 2011 1:21 am

Image

I've been using python and I have been testing on my computer and the results are appropriate, but when I verify a lot of errors occur

ERROR(exception_general): Exception or assert
Traceback (most recent call last):
File "/tmp/cbot_-1_u0Nbva.py", line 16, in <module>
nomor = encode.index(x)
ValueError: list.index(x): x not in list
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
File "/usr/lib/python2.6/dist-packages/apport/__init__.py", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/apport/report.py", line 19, in <module>
File "/usr/lib/python2.6/dist-packages/apport/fileutils.py", line 15, in <module>
File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 19, in <module>
File "/usr/lib/python2.6/dist-packages/apt/__init__.py", line 36, in <module>
apt_pkg.init()
SystemError: E:Unable to read /etc/apt/apt.conf.d/ - opendir (13: Permission denied)

Original exception was:
Traceback (most recent call last):
File "/tmp/cbot_-1_u0Nbva.py", line 16, in <module>
nomor = encode.index(x)
ValueError: list.index(x): x not in list
User avatar
Imam Pradana
 
Posts: 3
Joined: Mon Jan 24, 2011 9:05 pm

Re: Noob cipher

Postby David Berthelot » Tue Jan 25, 2011 1:24 am

Can you do a:
print encode
print x

before the assertion error ?
In verification you can do prints to debug your program and you'll the output in Results
User avatar
David Berthelot
 
Posts: 43
Joined: Sun Jan 16, 2011 5:06 pm

Re: Noob cipher

Postby Imam Pradana » Tue Jan 25, 2011 1:54 am

ok thanks, I have successfully :D
User avatar
Imam Pradana
 
Posts: 3
Joined: Mon Jan 24, 2011 9:05 pm

Re: Noob cipher

Postby Ishan Kaul » Sat Jan 29, 2011 1:29 pm

The code i am using is working well on my system but on your site its verification gets failed can you please check my code :)
User avatar
Ishan Kaul
 
Posts: 1
Joined: Sat Jan 29, 2011 1:10 pm

Re: Noob cipher

Postby admin » Sat Jan 29, 2011 1:39 pm

Ishan, when you click the verify button it gives you the output produced by your program. We made this so that it's easy to debug your solution before submitting. You can put your own print to debug your program.
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Noob cipher

Postby sasayins » Sat Jan 29, 2011 7:40 pm

Gee.. I really don't know what's the problem in my code. it seems its working on my side but failed in the verification.
User avatar
sasayins
 
Posts: 1
Joined: Sat Jan 29, 2011 5:58 pm

PreviousNext

Return to Puzzles

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron