結果

問題 No.373 かけ算と割った余り
ユーザー nCk_cvnCk_cv
提出日時 2016-07-01 18:29:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 431 bytes
コンパイル時間 1,974 ms
コンパイル使用メモリ 75,056 KB
実行使用メモリ 54,232 KB
最終ジャッジ日時 2024-04-20 05:04:03
合計ジャッジ時間 3,379 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
54,232 KB
testcase_01 AC 125 ms
54,084 KB
testcase_02 AC 123 ms
54,144 KB
testcase_03 AC 117 ms
53,220 KB
testcase_04 AC 114 ms
53,072 KB
testcase_05 AC 116 ms
52,912 KB
testcase_06 AC 117 ms
52,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.math.*;
import java.util.*;


public class Main {
	static int[] vy = {1,0,-1,0};
	static int[] vx = {0,1,0,-1};
	public static void main(String[] args) {	
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		long A = sc.nextLong();
		long B = sc.nextLong();
		long C = sc.nextLong();
		long D = sc.nextLong();
		System.out.println((((A%D)*(B%D)%D)*(C%D))%D);
	}
}
0