Hello There, Guest!
View New Posts  |  View Today's Posts
[Announcement] Nintendo Sponsored Challenge

  • 0 Vote(s) - 0 Average


01-01-2016, 06:09 PM #1
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

Nintendo Sponsored Challenge
There is a challenge on a coding website sponsored by Nintendo. The idea is to reverse the encoding process specified by the below code:
Code:
#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
   int size;

   cin >> size;

   unsigned int *a = new unsigned int[size / 16]; // <- input tab to encrypt
   unsigned int *b = new unsigned int[size / 16]; // <- output tab

   for (int i = 0; i < size / 16; i++)     // Read size / 16 integers to a
   {
      cin >> hex >> a[i];
   }

   for (int i = 0; i < size / 16; i++)     // Write size / 16 zeros to b
   {
      b[i] = 0;
   }

   for (int i = 0; i < size; i++)
      for (int j = 0; j < size; j++)
      {
         b[(i + j) / 32] ^= ((a[i / 32] >> (i % 32)) &
                             (a[j / 32 + size / 32] >> (j % 32)) & 1) << ((i + j) % 32);    // Magic centaurian operation
      }

   for (int i = 0; i < size / 16; i++)
   {
      if (i > 0)
      {
         cout << ' ';
      }
      cout << setfill('0') << setw(8) << hex << b[i];       // print result
   }
   cout << endl;

   delete [] a;
   delete [] b;

   /*
      Good luck humans
   */

   return 0;
}

There is also some pseudo code for this encoding process on the website, but it's very difficult. For those of you brave enough to give it a shot: https://www.codingame.com

(In the "Games" section down near the bottom the Nintendo challenge description can be found)


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲

01-02-2016, 05:54 AM #2
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: Nintendo Sponsored Challenge
There is another related challenge - http://www.nerd.nintendo.com/files/HireMe.cpp

Supposedly the one hosted on codingame is the hardest challenge they currently have however.


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲

04-13-2016, 07:37 PM #3
IamLupo
Junior Member
**
Posts: 1 Threads:0 Joined: Apr 2016 Reputation: 0

RE: Nintendo Sponsored Challenge
(01-02-2016, 05:54 AM)AceInfinity Wrote:  There is another related challenge - http://www.nerd.nintendo.com/files/HireMe.cpp

Supposedly the one hosted on codingame is the hardest challenge they currently have however.

I made a crack for this challenge. It cracks the challenge in 15 seconds ;) I really liked the gaussian elimination part.

https://github.com/IamLupo/Nintendo-HireMe

04-17-2016, 01:19 PM #4
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: Nintendo Sponsored Challenge
(04-13-2016, 07:37 PM)IamLupo Wrote:  
(01-02-2016, 05:54 AM)AceInfinity Wrote:  There is another related challenge - http://www.nerd.nintendo.com/files/HireMe.cpp

Supposedly the one hosted on codingame is the hardest challenge they currently have however.

I made a crack for this challenge. It cracks the challenge in 15 seconds ;) I really liked the gaussian elimination part.

https://github.com/IamLupo/Nintendo-HireMe

Well done :) that was the easier one supposedly
This post was last modified: 04-17-2016, 01:25 PM by AceInfinity.


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲




Forum Jump:


Possibly Related Threads...
Thread Author Replies Views Last Post
   Quick Programming Challenge! AceInfinity 16 8,338 08-04-2014, 10:57 PM
Last Post: AceInfinity
   Programming Challenge #12 - Mastermind AceInfinity 15 10,338 11-19-2013, 12:22 AM
Last Post: AceInfinity
  Challenge Set - Triangle Orientation AceInfinity 3 2,086 08-16-2013, 03:50 PM
Last Post: AceInfinity
  Programming Challenge Site - Al Zimmermann's AceInfinity 2 2,111 04-23-2013, 12:56 AM
Last Post: AceInfinity
  TreasureChest Challenge AceInfinity 2 1,722 04-15-2013, 11:27 PM
Last Post: AceInfinity


Users browsing this thread: 1 Guest(s)