結果

問題 No.666 1000000007で割るだけ
ユーザー 37zigen37zigen
提出日時 2018-03-23 22:55:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 462 bytes
コンパイル時間 2,952 ms
コンパイル使用メモリ 71,744 KB
実行使用メモリ 56,348 KB
最終ジャッジ日時 2023-09-07 03:53:56
合計ジャッジ時間 7,348 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,892 KB
testcase_01 AC 123 ms
56,132 KB
testcase_02 AC 124 ms
55,560 KB
testcase_03 AC 125 ms
55,992 KB
testcase_04 AC 124 ms
56,276 KB
testcase_05 AC 125 ms
55,988 KB
testcase_06 AC 123 ms
55,852 KB
testcase_07 AC 124 ms
55,936 KB
testcase_08 AC 123 ms
55,764 KB
testcase_09 AC 127 ms
55,812 KB
testcase_10 AC 126 ms
55,796 KB
testcase_11 AC 125 ms
55,748 KB
testcase_12 AC 126 ms
56,052 KB
testcase_13 AC 126 ms
55,896 KB
testcase_14 AC 124 ms
55,716 KB
testcase_15 AC 127 ms
55,836 KB
testcase_16 AC 124 ms
56,100 KB
testcase_17 AC 123 ms
55,564 KB
testcase_18 AC 124 ms
55,980 KB
testcase_19 AC 123 ms
55,580 KB
testcase_20 AC 124 ms
55,760 KB
testcase_21 AC 123 ms
55,868 KB
testcase_22 AC 122 ms
56,348 KB
testcase_23 AC 121 ms
55,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main implements Runnable {
	public static void main(String[] args) {
		new Main().run();
	}

	long MOD = (long) (1e9 + 7);

	public void run() {
		Scanner sc = new Scanner(System.in);
		long A = sc.nextLong();
		long B = sc.nextLong();
		System.out.println(A * B % MOD);
	}

	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}
}
0