Jump to content

Photo

10$ Donation Rubik's Cube

35 replies to this topic
  • Please log in to reply

#1
TheHurtLocker

TheHurtLocker

    Diamond Monger

  • Server Donator
  • 579 posts

Hi everyone,

 

Considering the last failure of my programming challenge, I have created something different this time which can be attempted by everyone :)

 

So many of you must love solving Rubik's cube ! Let's write a code for it ! 

Well you don't really need to entirely solve the cube, even if you don't rotate the cube at all, you still get some points !

 

Scoring is relative, which means the better the cube is solved, more points you get.

All the scoring mechanism is mentioned in the problem link. You just need to print some lame moves to rotate the cube that's it !

 

Winner of the contest gets a 10$ donation !

 

Contest Linkhttps://www.hackerrank.com/broken-cube

 

Note: Since this is a relative score problem, even if there is a single submission with 0 moves. There is always a winner !

 

Rules: 

Please Signup on HackerRank with your forum username !

 

Plagiarism means immediate disqualification. 

Contest ends on : July 17th IST 00:00 hrs.

After Contest ends, winner will be decided from leader-board.

 

Feel free to ask anything regarding how to participate !

 

Enjoy !

 

Current Leaderboard:

KT1zpSY.jpg


Edited by TheHurtLocker, 19 June 2018 - 10:49 AM.

  • Athu7890, THEBlueBRAD360, Jeeva and 2 others like this

 

giphy.gif


#2
SwT_Jerome

SwT_Jerome

    Enderdragon Slayer

  • Server Donator
  • 1,135 posts

Do we solve this rubiks cube by using a programming aplication like C++??


VxVzsXG.gif

==[Faction Chat]==[DeathGods]==[Faction Recruitment Thread]

B1 TheMojangTeam, B2 TheFloaters,B3 Interstellar, B4 Deathgods


#3
TheHurtLocker

TheHurtLocker

    Diamond Monger

  • Server Donator
  • 579 posts

Do we solve this rubiks cube by using a programming aplication like C++??

Yes, but you don't need to entirely solve the cube. Whatever moves you print, the cube will be rotated and based on final cube scores will be calculated. 

 

*Hint* Even printing 0 is a solution !


 

giphy.gif


#4
Pros

Pros

    Cobble Builder

  • Members
  • 38 posts

Man! I can solve rubix cube in 3 minutes but to code it takes 3 years!

As i dont know programming



#5
Pros

Pros

    Cobble Builder

  • Members
  • 38 posts

I came out way to solve it in 30 steps but I dont know programming at all



#6
Pros

Pros

    Cobble Builder

  • Members
  • 38 posts

R R U F B B Ui Ri U F F Ui R F F R R B B L L U U B B R R Di F F

 

This solves the cube and I think it will make 100 but i dont know programming so goodluck



#7
SwT_Jerome

SwT_Jerome

    Enderdragon Slayer

  • Server Donator
  • 1,135 posts

I am Sub 20 person can finish the cube in more thant 20- 30 sec.... but idk how to code imma change XDDD i mean immma do some coding \

 

 

Another question.... How do we determine the winner? the less the moves used? orr the less the time?


  • TheHurtLocker likes this

VxVzsXG.gif

==[Faction Chat]==[DeathGods]==[Faction Recruitment Thread]

B1 TheMojangTeam, B2 TheFloaters,B3 Interstellar, B4 Deathgods


#8
TheHurtLocker

TheHurtLocker

    Diamond Monger

  • Server Donator
  • 579 posts

R R U F B B Ui Ri U F F Ui R F F R R B B L L U U B B R R Di F F

 

This solves the cube and I think it will make 100 but i dont know programming so goodluck

 

You know you even submit those moves !

print 30
print 'R R U F B B Ui Ri U F F Ui R F F R R B B L L U U B B R R Di F F'

Above is the python 2 code for the same,

But I am assuming you solved the example cube, in the given problem there are 5 different cubes whose configuration will be provided to your code and it won't be visible to you.

 

I am Sub 20 person can finish the cube in more thant 20- 30 sec.... but idk how to code imma change XDDD i mean immma do some coding \

 

 

Another question.... How do we determine the winner? the less the moves used? orr the less the time?

There is a formula used for score calculation.

score=0
for i=1 to 6:
    m=count of maximum occurring color on face i
    score+=m
    if m==9:
        score+=4              //bonus score for solving a face
if score==78:                 //cube solved
    score+=12                //bonus score for solving complete cube
    score+=200/N             //tie breaker for solved cubes, N=number of moves

So yea,if you are able to solve the cube, the lesser number of moves get you more point. But as you can see, the problem gives you score even if the cube is not solved.


 

giphy.gif


#9
SwT_Jerome

SwT_Jerome

    Enderdragon Slayer

  • Server Donator
  • 1,135 posts

What kind of programming language is gonna be used here? C++,Python? Java? C?


VxVzsXG.gif

==[Faction Chat]==[DeathGods]==[Faction Recruitment Thread]

B1 TheMojangTeam, B2 TheFloaters,B3 Interstellar, B4 Deathgods


#10
TheHurtLocker

TheHurtLocker

    Diamond Monger

  • Server Donator
  • 579 posts

What kind of programming language is gonna be used here? C++,Python? Java? C?


Anything you're comfortable with :)

 

giphy.gif


#11
TruckerKid

TruckerKid

    Wealthy Merchant

  • Server Donator
  • 435 posts

why wasnt this a virtual cube which we can slove by clicking on arrows :P

 

i bet i would solve it in not more than a minute.

 

anyways good luck to you guys :D



#12
DemonicBlow

DemonicBlow

    Enderdragon Slayer

  • Server Donator
  • 1,379 posts

Anything you're comfortable with :)

Pascal?


Signatures are overrated.


#13
TheHurtLocker

TheHurtLocker

    Diamond Monger

  • Server Donator
  • 579 posts

Pascal?

 

Yes, its there !


 

giphy.gif


#14
Pros

Pros

    Cobble Builder

  • Members
  • 38 posts

You know you even submit those moves !

print 30
print 'R R U F B B Ui Ri U F F Ui R F F R R B B L L U U B B R R Di F F'

What do u mean I didnt submit them But now I just copied yr text and submitted it but with an error



#15
Pros

Pros

    Cobble Builder

  • Members
  • 38 posts

can anyone give me a sample plz



#16
TheHurtLocker

TheHurtLocker

    Diamond Monger

  • Server Donator
  • 579 posts

What do u mean I didnt submit them But now I just copied yr text and submitted it but with an error


That's a python2 code, you chose C language while submission.

 

giphy.gif


#17
Sin3point14

Sin3point14

    Diamond Monger

  • Server Donator
  • 638 posts

lmao xDD, nice problem hurt, tho i am away from my computer for sometime so gonnna give it a shot once I can


IBLG93f.png

 

Thanks to Athu7890 for making this sign :)  :D  :P


#18
Pros

Pros

    Cobble Builder

  • Members
  • 38 posts

WTFFFF

I spend lot of time doing 1 move but error!!!!

I GIVE UP!!
STUPID MINDBLOWING CHALLENGE

 

 

 

 

Sorry I spoke too much



#19
Slateyo

Slateyo

    Master of Doughnuts.

  • Server Donator
  • 2,213 posts

Ahhh I would have done it or atleast tried if it was java or js, I donno anything about C and python.. gonna take net_hunterr's help anyways if Im doing it

 

GG to everyone who tried


Posted Image


#20
TheHurtLocker

TheHurtLocker

    Diamond Monger

  • Server Donator
  • 579 posts

Ahhh I would have done it or atleast tried if it was java or js, I donno anything about C and python.. gonna take net_hunterr's help anyways if Im doing it

GG to everyone who tried


Java and js both are available

 

giphy.gif



Also tagged with one or more of these keywords: puzzle, 10$

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users