結果

問題 No.373 かけ算と割った余り
ユーザー matsuyoshi30matsuyoshi30
提出日時 2017-02-07 23:28:45
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 413 bytes
コンパイル時間 1,748 ms
コンパイル使用メモリ 72,040 KB
実行使用メモリ 56,372 KB
最終ジャッジ日時 2023-08-26 16:38:11
合計ジャッジ時間 3,196 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
56,320 KB
testcase_01 WA -
testcase_02 AC 119 ms
56,232 KB
testcase_03 WA -
testcase_04 AC 110 ms
55,736 KB
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

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