style:fmt

This commit is contained in:
dichgrem
2025-11-15 13:30:17 +08:00
parent c20e8949a5
commit 41e6b71bd7
33 changed files with 549 additions and 543 deletions

View File

@@ -3,17 +3,17 @@ package com.study.demo;
import java.util.Scanner;
public class test8 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int k = scanner.nextInt();
int a = x / 1000 % k;
int b = x / 100 % 10 % k;
int c = x / 10 % 10 % k;
int d = x % 10 % k;
System.out.print(a);
System.out.print(b);
System.out.print(c);
System.out.println(d);
}
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int k = scanner.nextInt();
int a = x / 1000 % k;
int b = x / 100 % 10 % k;
int c = x / 10 % 10 % k;
int d = x % 10 % k;
System.out.print(a);
System.out.print(b);
System.out.print(c);
System.out.println(d);
}
}