結果

問題 No.373 かけ算と割った余り
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-11 03:07:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 110 ms / 2,000 ms
コード長 328 bytes
コンパイル時間 2,016 ms
コンパイル使用メモリ 71,432 KB
実行使用メモリ 57,880 KB
最終ジャッジ日時 2023-08-16 18:08:53
合計ジャッジ時間 2,993 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
55,772 KB
testcase_01 AC 105 ms
56,304 KB
testcase_02 AC 107 ms
57,880 KB
testcase_03 AC 106 ms
56,000 KB
testcase_04 AC 110 ms
55,860 KB
testcase_05 AC 105 ms
55,508 KB
testcase_06 AC 109 ms
53,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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