umilove98의 블로그

백준 14652 Java 본문

algorithm/백준

백준 14652 Java

umilove98 2021. 7. 18. 12:51
반응형

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Q14652 {
	public static void main(String[] args) throws IOException {
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); 
		String s = bf.readLine();
		StringTokenizer st = new StringTokenizer(s); 
		int n = Integer.parseInt(st.nextToken());
		int m = Integer.parseInt(st.nextToken());
		int k = Integer.parseInt(st.nextToken());
		
		System.out.println(k/m + " " + k%m);
		

	}

}
반응형

'algorithm > 백준' 카테고리의 다른 글

백준 15439 Java  (0) 2021.07.18
백준 14928 Java  (0) 2021.07.18
백준 11654 Java  (0) 2021.07.17
백준 10430 Python  (0) 2021.07.17
백준 8437 Java  (0) 2021.07.17