結果

問題 No.373 かけ算と割った余り
ユーザー matsuyoshi30matsuyoshi30
提出日時 2017-02-07 23:29:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 110 ms / 2,000 ms
コード長 411 bytes
コンパイル時間 1,659 ms
コンパイル使用メモリ 72,584 KB
実行使用メモリ 56,160 KB
最終ジャッジ日時 2023-08-26 16:38:25
合計ジャッジ時間 3,030 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
56,028 KB
testcase_01 AC 110 ms
55,920 KB
testcase_02 AC 110 ms
55,972 KB
testcase_03 AC 110 ms
56,160 KB
testcase_04 AC 107 ms
56,116 KB
testcase_05 AC 106 ms
56,032 KB
testcase_06 AC 107 ms
56,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();
        long d = in.nextLong();

        System.out.println((a*b)%d*c%d);

        in.close();
    }
}
0