結果

問題 No.373 かけ算と割った余り
ユーザー Mcpu3Mcpu3
提出日時 2018-07-11 19:59:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 3,997 ms
コンパイル使用メモリ 73,980 KB
実行使用メモリ 57,608 KB
最終ジャッジ日時 2023-10-21 17:41:01
合計ジャッジ時間 5,549 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
57,608 KB
testcase_01 AC 131 ms
57,320 KB
testcase_02 AC 132 ms
57,316 KB
testcase_03 AC 130 ms
57,356 KB
testcase_04 AC 129 ms
57,204 KB
testcase_05 AC 133 ms
57,528 KB
testcase_06 AC 135 ms
57,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no373{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		long a=stdIn.nextLong(),b=stdIn.nextLong(),c=stdIn.nextLong(),d=stdIn.nextLong();
		System.out.print((a*b)%d*c%d);
	}
}
0