nyoj 803 A/B Problem 【Java大數】,nyoj803

來源:互聯網
上載者:User

nyoj 803 A/B Problem 【Java大數】,nyoj803

 先用字串將字串接收,然後在用BigInteger就好了

代碼:

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");}}}        

題目連結:http://acm.nyist.net/JudgeOnline/problem.php?pid=803


投訴聯想經銷商經銷商名稱:廣州市粵邦資訊科技有限公司,地址:廣州天河太平洋B場G803A/廣州天河百腦匯二

你可以找12315啊,等這事大家都知道了,他們店的信譽度就下降了,沒人去買了,最後他還是應該向你賠禮道歉,但問題是你有什麼可以證明他給你的是假商品的證據呢?
 
長沙803外環是A線還是B線

B線在大學城的第一站是二期東華大學東門,7點的那班7點50左右到那裡
你要趕早上7點45,只能在萬體館坐滬松線,首班是6點半,到松江樂都路汽車站大概7點10分,再換松四時間差不多,如果保險點麼下滬松線就小黑車或者taxi
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.