Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.10 KB | None | 0 0
  1. public class HelloWorld{
  2.  
  3.      public static void main(String []args){
  4.        
  5.         // wpisalem na poczatku a2 = 0
  6.         // tylko zeby zobaczyc jaki jest wynik
  7.         // petla
  8.         boolean found = false;
  9.         int i = Integer.MIN_VALUE;
  10.         int i_max = Integer.MAX_VALUE;
  11.         System.out.println("Od " + i);
  12.         System.out.println("Do " + i_max);
  13.         for( ; i < i_max ; i++)
  14.         {
  15.             if( i % 100000000 == 0 )
  16.             {
  17.                 System.out.println("DBG " + i);
  18.             }
  19.             int a1 = 0x6D, a2 = i, a = a1 & a2,
  20.                 b1 = 0xA, b2 = a2, b = b1 | b2,
  21.                 c1 = 11 << 2, c2 = a2, c = c1 ^ c2;
  22.                
  23.             if( a == 13 && b == 15 & c == 42)
  24.             {
  25.                 found = true;
  26.                 System.out.println("mamy to");
  27.                 System.out.println(a + " " + b + " " + c);
  28.                 System.out.println("a2 = " + i);
  29.                 break;
  30.             }
  31.         }
  32.        
  33.         if( false == found )
  34.         {
  35.             System.out.println("dupa");
  36.         }
  37.      }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement