結果

問題 No.373 かけ算と割った余り
ユーザー jimanojimano
提出日時 2018-02-04 16:36:23
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 518 bytes
コンパイル時間 2,975 ms
コンパイル使用メモリ 71,072 KB
実行使用メモリ 49,312 KB
最終ジャッジ日時 2023-09-12 16:03:11
合計ジャッジ時間 3,784 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,180 KB
testcase_01 AC 42 ms
49,208 KB
testcase_02 AC 42 ms
49,260 KB
testcase_03 AC 42 ms
49,224 KB
testcase_04 AC 43 ms
49,176 KB
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1_5;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No0373 {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] str = br.readLine().split(" ");
			long ans = (Long.parseLong(str[0]) * Long.parseLong(str[1]) * Long.parseLong(str[2])) % Long.parseLong(str[3]);
			System.out.println(ans);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0