結果

問題 No.373 かけ算と割った余り
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-05 16:09:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 310 bytes
コンパイル時間 6,672 ms
コンパイル使用メモリ 83,368 KB
実行使用メモリ 54,100 KB
最終ジャッジ日時 2024-04-17 12:08:10
合計ジャッジ時間 4,733 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
54,092 KB
testcase_01 AC 131 ms
53,984 KB
testcase_02 AC 132 ms
54,024 KB
testcase_03 AC 131 ms
54,100 KB
testcase_04 AC 132 ms
53,876 KB
testcase_05 AC 134 ms
53,804 KB
testcase_06 AC 132 ms
54,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Exercise61{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    long a = sc.nextInt();
    long b = sc.nextInt();
    long c = sc.nextInt();
    long d = sc.nextInt();

    long x = a % d * b % d * c % d;

    System.out.println(x);
  }
}
0