結果

問題 No.373 かけ算と割った余り
ユーザー ontama_12ontama_12
提出日時 2016-09-23 10:47:48
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 532 bytes
コンパイル時間 2,100 ms
コンパイル使用メモリ 73,980 KB
実行使用メモリ 41,564 KB
最終ジャッジ日時 2024-04-28 21:25:59
合計ジャッジ時間 3,693 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
41,104 KB
testcase_01 AC 138 ms
41,024 KB
testcase_02 AC 137 ms
41,248 KB
testcase_03 AC 117 ms
40,100 KB
testcase_04 AC 126 ms
41,032 KB
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
//入力文字をの読み取り
    	Scanner sc = new Scanner(System.in);
        //1文字目
        long a = sc.nextInt();
        //2文字目
        long b = sc.nextInt();
      //3文字目
        long c = sc.nextInt();
      //4文字目
        long d = sc.nextInt();

        //計算
        long result = a*b;
        result = result*c;
        result = result%d;
        //出力
        	System.out.println(result);

    }
}
0