fork download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. public class Main{
  5. public static void main(String[] args){
  6. int result[] = new int[]{0,0,1,0};
  7. int out = 0;
  8. for(int i = 0;i < result.length; i ++){
  9. out = (out << 1) + result[i];
  10. }
  11. System.out.println(out);
  12. }
  13. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
2