JavaStep-进制切换BigInteger
来源:互联网 发布:皇室战争火球升级数据 编辑:程序博客网 时间:2024/06/05 10:44
//java POJ2305 Basic remains
import java.math.*;import java.io.*;import java.util.*;public class Main{ public static void main(String[] args){ Scanner in = new Scanner(new BufferedInputStream(System.in)); BigInteger a,b; int n; String str; while (true){ n = in.nextInt(); if (n==0) break; str = in.next(); a = new BigInteger(str,n); str = in.next(); b = new BigInteger(str,n); a = a.mod(b); System.out.println(a.toString(n)); } }}
- JavaStep-进制切换BigInteger
- JavaStep-小数进制转换
- BigInteger
- BigInteger
- BigInteger
- BigInteger
- BigInteger
- BigInteger
- BigInteger
- BigInteger
- BigInteger
- BigInteger
- BigInteger
- BigInteger与16进制之间的转化
- java小练习(11)--进制转化(BigInteger高级)
- POJ 1220 (两种任意进制之间的转换(大数),java的BigInteger)
- 16进制字符串转换为10进制数字方法,负数的16进制需要BigInteger封装
- JavaStep-小数末尾除零以及in.hasNext()
- Activity及Intent
- 应该知道的Linux技巧
- 黑马程序员-集合框架小结
- 协程的一点认识
- 2013.9.23 Struts2工作原理和执行流程
- JavaStep-进制切换BigInteger
- 黑马程序员-IO
- python 装饰器的使用
- 自动生成C# 年月日加流水号的单据号、及日期时间相关函数的用法
- 栈的一些基本操作
- 编译静态的zlib和openssl
- android 反汇编,修改,重新打包
- 搜索算法:IDA*算法
- sscanf,sscanf_s及其相关用法