题解 | #计算带余除法#
计算带余除法
http://www.nowcoder.com/practice/34d3911bf2fd48a285f6396e886a1259
import java.util.Scanner; import java.lang.String; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); System.out.println(a/b+" "+a%b); } }