机试题:进制转换

机试题:进制转换

今日份AC

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str="";
		while((str=br.readLine())!=null) {
			BigInteger bi=new BigInteger(str);
			String ss=bi.toString(2);
			System.out.println(ss);
		}
	}

}

 

相关文章:

  • 2021-10-14
  • 2021-09-05
  • 2021-09-15
  • 2021-12-15
  • 2021-10-31
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2021-10-10
  • 2021-04-06
  • 2021-11-26
  • 2021-09-21
  • 2021-08-20
相关资源
相似解决方案