HPU多校题C-Simplest

题目链接:http://pipakaca.com/problem.php?cid=1037&pid=2

这道题也很简单,我也是用的JAVA大数,不过其实不用,把前面的0去掉就行了,不过要注意一个特殊情况,就是这个数本身就是0。

import java.math.*;
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		while(t--!=0){
			BigInteger a=sc.nextBigInteger();
			System.out.println(a);
		}
	}
}
 

猜你喜欢

转载自blog.csdn.net/King8611/article/details/81275695