結果

問題 No.373 かけ算と割った余り
ユーザー uafr_cs
提出日時 2016-08-14 04:25:41
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 416 bytes
コンパイル時間 2,138 ms
コンパイル使用メモリ 74,248 KB
実行使用メモリ 41,688 KB
最終ジャッジ日時 2024-11-07 16:38:18
合計ジャッジ時間 3,697 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final long A = sc.nextLong();
		final long B = sc.nextLong();
		final long C = sc.nextLong();
		final long D = sc.nextLong();
		
		System.out.println((((A * B) % D) * C) % D) ;
	}

}
0