Results 1 to 4 of 4

Thread: java

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Nikon user Corsuse's Avatar
    Join Date: Sep:2007
    Location:
    Posts: 985

    java

    .

    n, v (v = 0 1) p.
    , n,
    p v. n=35, p=5, v=0 -> n=3.
    : n=35, p=2, v=1 -> n=39.

    , . , n v, ?


    .
    Last edited by Corsuse; 22nd July 2010 at 14:39.

  2. #2
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    Quote Originally Posted by Corsuse View Post
    , n v, ?
    . (0->1) (1->0) 2^n, n , 0. "" 0->0 1->1 .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  3. #3
    Nikon user Corsuse's Avatar
    Join Date: Sep:2007
    Location:
    Posts: 985
    ? ?

  4. #4
    Registered User
    Join Date: Feb:2006
    Location: Plovdiv
    Posts: 392
    n, v (v = 0 1) p.
    :
    Code:
    m = 1 << p
    
    if(v == 1)
        n |= m;
    else
        n &= ~m
    
    print n

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |