package com;
import java.util.Scanner;
//二进制串中只有一个1
public class 是不是二的整数次方 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
System.out.println(Integer.toString(N,2));
if(((N-1)&N)==0){
System.out.println("是");
}else {
System.out.println("不是");
}
}
}
02-27
1579
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)