結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 129 ms
41,396 KB
testcase_03 WA -
testcase_04 AC 128 ms
41,140 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文字目
        int a = sc.nextInt();
        //2文字目
        int b = sc.nextInt();
      //3文字目
        int c = sc.nextInt();
      //4文字目
        int d = sc.nextInt();

        //現在所持金からの5円硬貨を算出
        int result = (a*b/c)%d;

        //出力
        	System.out.println(result);

    }
}
0