結果

問題 No.373 かけ算と割った余り
ユーザー nullzine
提出日時 2017-01-19 21:24:02
言語 Java
(openjdk 23)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 391 bytes
コンパイル時間 2,769 ms
コンパイル使用メモリ 74,496 KB
実行使用メモリ 41,068 KB
最終ジャッジ日時 2024-12-23 01:33:15
合計ジャッジ時間 3,599 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;

/**
 * Created by nullzine on 2017/01/19.
 */
public class Main {

    public static void main(String[] args) {
        String[] strs = new java.util.Scanner(System.in).nextLine().split(" ");
        System.out.println(new BigInteger(strs[0]).multiply(new BigInteger(strs[1])).multiply(new BigInteger(strs[2])).mod(new BigInteger(strs[3])).toString());
    }

}
0