Nyoj 803 A/B Problem [Java large number], nyoj803
First, use the string to receive the string, and then use BigInteger.
Code:
import java.util.Scanner;import java.math.*;public class Main{public static void main(String[] args){Scanner cin = new Scanner(System.in);while(cin.hasNextBigInteger()){BigInteger aa, bb;//a = cin.nextBigDecimal();//b = cin.nextBigDecimal();String a, b, c;a = cin.next();b = cin.next();c = cin.next();aa = new BigInteger(a);bb = new BigInteger(c);//System.out.println(a);//System.out.println(b);//System.out.println(c);if(b.compareTo("/") == 0) System.out.println(aa.divide(bb));if(b.compareTo("%") == 0){System.out.println(aa.mod(bb));}//else System.out.println("NO");}}}
Question link: http://acm.nyist.net/JudgeOnline/problem.php? Pid = 1, 803
Name of the Lenovo DEALER: Guangzhou yuebang Information Technology Co., Ltd., address: Guangzhou Tianhe Pacific B, G803A/Guangzhou Tianhe bainaohui 2
You can go to 12315. When everyone knows this, their store's credibility will drop and no one will buy it. In the end, he should apologize to you, but the question is, do you have any evidence to prove that he gave you fake goods?
Changsha 803 outer ring is line A or line B
The first stop of line B in the university city is the east gate of Donghua University in Phase II. The class at will be there at around.
If you want to catch up at half past six a.m., you can only take the Shanghai-song line at the hichina sports hall. The first shift is 07:10. It will take about to the bus station on the Lok du Road in Songjiang, And the next shift will be about, if the Insurance Service is off the Shanghai pine line, there will be a black car or taxi.