結果

問題 No.373 かけ算と割った余り
ユーザー sasukesasuke
提出日時 2016-06-16 21:45:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 2,877 ms
コンパイル使用メモリ 74,208 KB
実行使用メモリ 41,572 KB
最終ジャッジ日時 2024-04-17 22:55:00
合計ジャッジ時間 4,203 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
41,048 KB
testcase_01 AC 102 ms
41,220 KB
testcase_02 AC 125 ms
41,404 KB
testcase_03 AC 118 ms
40,396 KB
testcase_04 AC 126 ms
41,572 KB
testcase_05 AC 108 ms
41,416 KB
testcase_06 AC 102 ms
41,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yuki373{
 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();
  System.out.println(a*b%d*c%d);
 }
}
0