結果

問題 No.373 かけ算と割った余り
ユーザー takutakutakutaku
提出日時 2020-09-24 15:33:55
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 463 bytes
コンパイル時間 2,680 ms
コンパイル使用メモリ 71,692 KB
実行使用メモリ 56,308 KB
最終ジャッジ日時 2023-09-10 13:28:22
合計ジャッジ時間 3,968 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,744 KB
testcase_01 AC 127 ms
55,952 KB
testcase_02 AC 127 ms
55,776 KB
testcase_03 AC 128 ms
55,740 KB
testcase_04 AC 128 ms
55,884 KB
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        long a = sc.nextLong();
        long b = sc.nextLong();
        long c = sc.nextLong();
        long d = sc.nextLong();
        
        long result = 0;
        result = a * b;
        result = result * c;
        result = result % d;
        
        System.out.println(result);
        
    }
}
0