結果

問題 No.373 かけ算と割った余り
ユーザー matsuyoshi30
提出日時 2017-02-07 23:28:45
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 413 bytes
コンパイル時間 2,604 ms
コンパイル使用メモリ 75,140 KB
実行使用メモリ 41,652 KB
最終ジャッジ日時 2024-12-25 15:34:09
合計ジャッジ時間 4,427 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 2 WA * 3
権限があれば一括ダウンロードができます

ソースコード

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