Playground/자바문제집

[백준] 1271번

미숫가루설탕많이 2023. 1. 22. 21:18
import java.util.*;
import java.io.*;
import java.math.*;

public class Main {
   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);

      BigInteger money = sc.nextBigInteger();
      BigInteger people = sc.nextBigInteger();
      
      sc.close();

      System.out.println(money.divide(people));
      System.out.println(money.remainder(people));
   }
}

'Playground > 자바문제집' 카테고리의 다른 글

[백준] 2675번  (0) 2023.01.22
[백준] 2577번  (0) 2023.01.22
[백준] 2475번  (0) 2023.01.22
[백준] 15964번  (0) 2023.01.22
[백준] 9086번  (0) 2023.01.22