1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Encryption | 23 Oct 2009

Discussion in '$1 Daily Competition' started by shabbir, Oct 23, 2009.

  1. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    ((run)/(these)) nails down to 187 / 5703 Then what would be for ((google)/(yahoo))
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    49/50.
     
  3. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    No, 49/5. One dp out (d'oh!). Getting careless in my old age.

    ('r'-'a'+i)*('u'-'a'+i)*('n'-'a'+i)=187 when i=3
    ('t'-'a'+i)*('h'-'a'+i)*('e'-'a'+i)*('s'-'a'+i)*('e'-'a'+i)=5703 when i=3

    So if i==3,
    ('g'-'a'+i)*('o'-'a'+i)*('o'-'a'+i)*('g'-'a'+i)*('l'-'a'+i)*('e'-'a'+i)=2294082
    ('y'-'a'+i)*('a'-'a'+i)*('h'-'a'+i)*('o'-'a'+i)*('o'-'a'+i)=234090
    2294082/234090=9.8, or 98/10, or 49/5.
     
  4. nimesh

    nimesh New Member

    Joined:
    Apr 13, 2009
    Messages:
    770
    Likes Received:
    20
    Trophy Points:
    0
    Occupation:
    Oracle Apps Admin
    Location:
    Mumbai
    Home Page:
    nice one xpt, but didn't get the logic

    'r'-'a' ???
     
  5. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    @xpi0t0s :

    Yeah, even I didn't get the logic ... :? :confused:
    The following code uses the "encryption" method you mentioned :
    Code:
    #include <stdio.h>
    
    int main()
    {
        char Decoded[50];
        unsigned int Value;
        int delta;
    
        Decoded[0]='O';
        while(Decoded[0] != '0')
        {
            scanf("%s", Decoded);
            scanf("%d", &delta);
            Value = 1;
            for(int i = 0; Decoded[i] != '\0'; ++i)
                Value *= (Decoded[i]-'a'+delta);
            printf("%d\n\n", Value);
        }
        return 0;
    }
    When I run it ...
    Code:
    [B]run 3[/B]
    [COLOR="Red"]7360[/COLOR]
    
    [B]these 3[/B]
    [COLOR="Red"]226380[/COLOR]
    
    [B]google 3[/B]
    [COLOR="SeaGreen"]2294082[/COLOR]
    
    [B]yahoo 3[/B]
    [COLOR="SeaGreen"]234090[/COLOR]
    
    The values in red, don't match with 187 and 5703 respectively. Those is green match perfectly with the values you predict as per your encryption scheme.

    And, 7360 / 226380 == 368 / 11319 in the simplest form. That might be close to 187/5703 but not equal to it.
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    Hint : Think in simple terms
     
  7. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    yeah I'm way out. Anyway I'm sticking with my guess of 49/50.
    How about posting your own guess instead of criticising mine.
     

Share This Page