結果
問題 | No.373 かけ算と割った余り |
ユーザー | spacia |
提出日時 | 2016-06-08 14:41:45 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 121 ms / 2,000 ms |
コード長 | 453 bytes |
コンパイル時間 | 2,022 ms |
コンパイル使用メモリ | 74,132 KB |
実行使用メモリ | 41,296 KB |
最終ジャッジ日時 | 2024-04-17 12:10:06 |
合計ジャッジ時間 | 3,928 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 121 ms
41,248 KB |
testcase_01 | AC | 109 ms
39,980 KB |
testcase_02 | AC | 115 ms
41,120 KB |
testcase_03 | AC | 116 ms
41,296 KB |
testcase_04 | AC | 117 ms
41,024 KB |
testcase_05 | AC | 119 ms
41,256 KB |
testcase_06 | AC | 119 ms
41,172 KB |
ソースコード
import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); BigInteger a = BigInteger.valueOf(sc.nextInt()); BigInteger b = BigInteger.valueOf(sc.nextInt()); BigInteger c = BigInteger.valueOf(sc.nextInt()); BigInteger d = BigInteger.valueOf(sc.nextInt()); System.out.println(a.multiply(b).multiply(c).remainder(d)); sc.close(); } }