結果

問題 No.373 かけ算と割った余り
ユーザー ontama_12
提出日時 2016-09-23 10:34:52
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 518 bytes
コンパイル時間 2,107 ms
コンパイル使用メモリ 73,772 KB
実行使用メモリ 56,296 KB
最終ジャッジ日時 2024-11-17 17:35:06
合計ジャッジ時間 3,711 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 1 WA * 4
権限があれば一括ダウンロードができます

ソースコード

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