Top 20

1 0x00h 702 pts
2 boris39 702 pts
3 neoxquick 683 pts
4 maf-ia 664 pts
5 thefinder 645 pts
6 benito255 609 pts
7 mego 592 pts
8 madbat2 582 pts
9 Mart 555 pts
10 nikokks 551 pts
11 Stupefy 534 pts
12 plucth 513 pts
13 tehron 505 pts
14 Kithyane 503 pts
15 egosum 475 pts
16 Zeta 417 pts
17 CoYoTe99 417 pts
18 Undr 416 pts
19 Armavica 412 pts
20 loonies2 411 pts

Classement complet

Shoutbox

2 Apr - 7:03 am

The Email challenge (#21) appears to be broken again. No mail is being received. Tried with multiple mail services to no avail.

12 May - 11:47 am

Working again now.

10 May - 4:05 pm

Hello, sorry for the late answer, in fact yes there is an issue with the mail, we will try to fix it quickly. Thanks for reporting

7 May - 6:07 pm

Hi there is a issue for the challenfe Email (number 21). I don't receive a mail on any of them: gmail, hotmail, yahoo. do i fail or is it the challenge ?

28 Feb - 10:35 am

Yes we fixed it

27 Feb - 10:00 pm

Thank you, just validated contest22. The solution checker seems to have been fixed.

27 Feb - 8:40 am

Yes several solutions are accepted of course. I will check one of your answers

26 Feb - 7:51 pm

No 500 error, but the solutions I'm submitting can be verified to be correct. It can't be that only one configuration is accepted, right? - as there are multiple correct configurations for each problem.

26 Feb - 5:54 pm

contest 22 is not concerned by the issue I found, and seems to be working (I suppose you don't have 500 error on this one ?). Your solutions are indeed rejected, but I did not check them yet

26 Feb - 3:25 pm

The validation for contest 22 also seems to be wrong (it's not accepting solutions that are clearly correct). I submitted bug report yesterday.

Connexion
Mot de passe oublié

Supportez nousx

Vous aimez µContest ?
Supportez nous en votant (fun et difficulté) pour µContest sur WeChall :)
Si vous ne l'avez pas encore fait, profitez-en pour lier votre compte
Wechall à µContest pour pouvoir voter !

Merci

Liste des épreuves :: Divers :: Strange function (57)

Résumé

ID : 57
Points : 16
Validations :
Page de l'épreuve
Reporter un bug

Description


Nous considérons cette fonction C:

unsigned int function(unsigned int seed, unsigned int input)
{
   unsigned int out = 0;
   unsigned int c = seed % ((input & 32) + 1);

   out = seed & ~input;
   out ^= (input >> c) | (input << c);

   return out;
}


Cette fonction prend 2 paramètres et retourne un entier.
Par exemple, avec
seed = 123456
input = 1212121212

On obtient 1241485807.
Vous allez recevoir la variable seed et la sortie, et vous devez retrouver la variable input correspondante (Plusieurs valeurs sont valides).


Variables


Nom Type Description
Variables à récupérer
seedEntierint
outputEntierintLa sortie de la fonction
Variables à renvoyer
inputEntierintLa variable input, qui donnée à la fonction avec seed, donne output