Noob cipher

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

Noob cipher

Postby admin » Mon Jan 10, 2011 9:09 am

A simple cipher that makes messages quite unreadable is the substitution cipher. The substitution cipher replace one alphabet letter with another alphabet letter. The goal of this puzzle is to decrypt a message encoded with a substitution cipher.


Last edited by admin on Mon Jan 10, 2011 9:21 am, edited 6 times in total.
Reason: Edit
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Noob cipher

Postby vladut » Mon Jan 17, 2011 4:15 pm

I think the overall leaderboard for the contest does not work.
User avatar
vladut
 
Posts: 12
Joined: Sun Jan 16, 2011 9:53 pm

Re: Noob cipher

Postby admin » Mon Jan 17, 2011 5:00 pm

Oh yes, I planned to have it computed every 24 hours to maintain the SQL low, I added a message to inform about this.
Sorry for the confusion. May be I'm going to make it computed dynamically and see if the server can take the load if people want it refreshed all the time.
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Noob cipher

Postby al13n » Fri Jan 21, 2011 8:06 am

C# testing behaves strangely. This code
Code: Select all
using System.IO;
public class noob_cipher
{
   public static void Main(string[] args)
   {
       new FileStream(args[1],FileMode.Open);
   }
}

gives the following verification report
Code: Select all
ERROR(exception_general): Exception or assert

(/tmp/cbot_-1_KQWAX_.cs.exe:17804): GLib-WARNING **: getpwuid_r(): failed due to: Permission denied.

Unhandled Exception: System.UnauthorizedAccessException: Access to the path "/dev/shm/noob_cipher/tests/verify.in" is denied.
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000]
  at System.IO.FileStream..ctor (System.String path, FileMode mode) [0x00000]
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode)
  at noob_cipher.Main (System.String[] args) [0x00000]

Looks like the solution is run without enough permissions. It's the first task I try to solve with C#, so I don't know whether it's a common problem or just this task.
User avatar
al13n
 
Posts: 3
Joined: Tue Jan 18, 2011 5:18 am

Re: Noob cipher

Postby admin » Fri Jan 21, 2011 1:30 pm

The file is read-only, that's probably why you get this message.
Have you tried to use:
FileAccess.Read
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Noob cipher

Postby al13n » Fri Jan 21, 2011 10:52 pm

Thanks, it works. I didn't realise it opens for read/write by default.
User avatar
al13n
 
Posts: 3
Joined: Tue Jan 18, 2011 5:18 am

Re: Noob cipher

Postby Neha Choudhary » Sat Jan 22, 2011 6:24 am

The code i am using is working well on my system but on your site its verification gets failed because the input to the substitution table is given in the form of integer.
what is wrong?
User avatar
Neha Choudhary
 
Posts: 1
Joined: Sat Jan 22, 2011 6:14 am

Re: Noob cipher

Postby admin » Sat Jan 22, 2011 10:03 am

Nena, make sure you read the substitution table correctly. I took a look at your code and it seems you only look at the first character of the substitution table.
User avatar
admin
Site Admin
 
Posts: 333
Joined: Thu Dec 23, 2010 1:27 am

Re: Noob cipher

Postby rocker » Sat Jan 22, 2011 9:51 pm

My php code is working fine and on verify its showing the same output as declared. But still its saying -

ERROR(incorrect): Incorrect result
Your submission failed to give the exact answer on the verification test. Please verify your code.
For reference, you program generated these results:
WELCOME TO CODER CHARTS

see the output is same.
User avatar
rocker
 
Posts: 4
Joined: Sat Jan 22, 2011 10:48 am

Re: Noob cipher

Postby David Berthelot » Sat Jan 22, 2011 10:10 pm

May be check for extra spaces at the end of the line ?
Or may be you replaced a newline (\n) with an empty char ?
User avatar
David Berthelot
 
Posts: 43
Joined: Sun Jan 16, 2011 5:06 pm

Next

Return to Puzzles

Who is online

Users browsing this forum: No registered users and 1 guest

cron