結果

問題 No.373 かけ算と割った余り
ユーザー sougo002
提出日時 2016-07-01 00:49:18
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 373 bytes
コンパイル時間 3,506 ms
コンパイル使用メモリ 74,244 KB
実行使用メモリ 54,392 KB
最終ジャッジ日時 2024-10-11 23:59:05
合計ジャッジ時間 4,908 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 3 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class TGMain {
    
    public static void main(String[] args){
        int a, b, c, N;
        int ans = 0;
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        N = sc.nextInt();
        ans = a*b*c;
        ans = ans%N;
        System.out.println(ans);
    }
}
0