编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#2991 #1002. 找倍数 Compile Error 0 0 ms 0 K Java / 537 B Met 2023-11-22 20:56:56
显示原始代码
import java.util.Scanner;

public class FindX {
    public static long findX(long N) {
        long modulo = 998244353;
        long R = N % modulo;
        long x = (N - R) / modulo;
        return x;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("Enter the value of N: ");
        long N = scanner.nextLong();

        long resultX = findX(N);
        System.out.println(resultX);

        scanner.close();
    }
}

编译信息

A TimeLimitExceeded encountered while compiling your code.