結果

問題 No.666 1000000007で割るだけ
ユーザー watarimaycry2watarimaycry2
提出日時 2020-04-10 16:27:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 810 bytes
コンパイル時間 2,019 ms
コンパイル使用メモリ 71,984 KB
実行使用メモリ 56,484 KB
最終ジャッジ日時 2023-10-13 07:20:29
合計ジャッジ時間 6,178 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
55,488 KB
testcase_01 AC 115 ms
55,792 KB
testcase_02 AC 118 ms
55,620 KB
testcase_03 AC 118 ms
55,996 KB
testcase_04 AC 117 ms
55,920 KB
testcase_05 AC 117 ms
55,664 KB
testcase_06 AC 117 ms
55,468 KB
testcase_07 AC 115 ms
56,044 KB
testcase_08 AC 118 ms
56,144 KB
testcase_09 AC 119 ms
56,088 KB
testcase_10 AC 118 ms
55,620 KB
testcase_11 AC 113 ms
55,744 KB
testcase_12 AC 116 ms
55,712 KB
testcase_13 AC 115 ms
55,812 KB
testcase_14 AC 115 ms
55,680 KB
testcase_15 AC 116 ms
55,972 KB
testcase_16 AC 118 ms
55,948 KB
testcase_17 AC 116 ms
55,880 KB
testcase_18 AC 117 ms
55,904 KB
testcase_19 AC 117 ms
55,988 KB
testcase_20 AC 116 ms
55,764 KB
testcase_21 AC 117 ms
56,484 KB
testcase_22 AC 117 ms
56,036 KB
testcase_23 AC 115 ms
55,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
        static Scanner sc = new Scanner(System.in);
        static void myout(Object t){System.out.println(t);}//standard output
        static void myerr(Object t){System.err.println(t);}//standard error
        static String getStr(){return sc.next();}
        static int getInt(){return Integer.parseInt(getStr());}
        static long getLong(){return Long.parseLong(getStr());}
        static boolean hasNext(){return sc.hasNext();}
        static char[] mySplit(String str){return str.toCharArray();}
        public static void main(String[] args){
          long A = getLong();
          long B = getLong();
          final int mod = 1000000007;
          myout(A * B % mod);
        }
        //Method addition frame start

        //Method addition frame end
}
0