poj2305 java第一题就让我很震惊~

    技术2022-05-20  45

    java就有这么慢么?

    这种水题~这~~~

    import java.util.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner cin=new Scanner(System.in); BigInteger x,y,re; String ans; int n; while (cin.hasNext()) { n=cin.nextInt(); if (n==0)break; x=cin.nextBigInteger(n); y=cin.nextBigInteger(n); re=x.mod(y); ans=re.toString(n); System.out.println(ans); } } }


    最新回复(0)