結果

問題 No.373 かけ算と割った余り
ユーザー sasuke
提出日時 2016-06-16 21:45:04
言語 Java
(openjdk 23)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 3,385 ms
コンパイル使用メモリ 73,628 KB
実行使用メモリ 41,392 KB
最終ジャッジ日時 2024-10-09 16:37:22
合計ジャッジ時間 4,848 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

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