結果

問題 No.666 1000000007で割るだけ
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2018-04-14 14:45:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 2,524 ms
コンパイル使用メモリ 70,916 KB
実行使用メモリ 58,140 KB
最終ジャッジ日時 2023-09-09 05:02:39
合計ジャッジ時間 6,630 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,492 KB
testcase_01 AC 120 ms
55,736 KB
testcase_02 AC 119 ms
55,724 KB
testcase_03 AC 120 ms
55,552 KB
testcase_04 AC 125 ms
55,708 KB
testcase_05 AC 121 ms
55,636 KB
testcase_06 AC 121 ms
56,000 KB
testcase_07 AC 121 ms
58,140 KB
testcase_08 AC 122 ms
55,288 KB
testcase_09 AC 120 ms
55,988 KB
testcase_10 AC 118 ms
56,012 KB
testcase_11 AC 120 ms
55,512 KB
testcase_12 AC 120 ms
55,920 KB
testcase_13 AC 121 ms
55,900 KB
testcase_14 AC 121 ms
55,784 KB
testcase_15 AC 120 ms
55,700 KB
testcase_16 AC 122 ms
55,736 KB
testcase_17 AC 121 ms
56,108 KB
testcase_18 AC 124 ms
55,920 KB
testcase_19 AC 121 ms
55,656 KB
testcase_20 AC 121 ms
55,712 KB
testcase_21 AC 120 ms
55,724 KB
testcase_22 AC 126 ms
56,096 KB
testcase_23 AC 122 ms
55,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long a = sc.nextLong();
        long b = sc.nextLong();
        long mod = 1000000007L;
        long ans = (a%mod) * (b%mod) % mod;
        System.out.println(ans);
    }
}
0