結果

問題 No.373 かけ算と割った余り
ユーザー tsunabittsunabit
提出日時 2019-06-02 11:51:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 424 bytes
コンパイル時間 3,432 ms
コンパイル使用メモリ 74,504 KB
実行使用メモリ 57,624 KB
最終ジャッジ日時 2023-10-17 22:58:19
合計ジャッジ時間 5,099 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
57,476 KB
testcase_01 AC 134 ms
57,500 KB
testcase_02 AC 133 ms
57,624 KB
testcase_03 AC 133 ms
57,560 KB
testcase_04 AC 133 ms
57,520 KB
testcase_05 AC 136 ms
57,524 KB
testcase_06 AC 135 ms
57,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No373 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner s = new Scanner(System.in);
        long a = s.nextLong();
        long b = s.nextLong();
        long c = s.nextLong();
        long d = s.nextLong();
        System.out.println((((a * b) % d) * c % d));
    }
}
0