Nyoj 803 A/B Problem [Java large number], nyoj803

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.