結果

問題 No.666 1000000007で割るだけ
ユーザー GBGB
提出日時 2018-04-20 11:25:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 351 bytes
コンパイル時間 2,783 ms
コンパイル使用メモリ 72,056 KB
実行使用メモリ 56,132 KB
最終ジャッジ日時 2023-09-09 11:57:34
合計ジャッジ時間 6,066 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,576 KB
testcase_01 AC 121 ms
56,088 KB
testcase_02 AC 124 ms
53,760 KB
testcase_03 AC 123 ms
55,612 KB
testcase_04 AC 124 ms
55,760 KB
testcase_05 AC 124 ms
55,576 KB
testcase_06 AC 125 ms
55,720 KB
testcase_07 AC 122 ms
55,560 KB
testcase_08 AC 128 ms
55,312 KB
testcase_09 AC 123 ms
55,568 KB
testcase_10 AC 121 ms
55,684 KB
testcase_11 AC 123 ms
55,772 KB
testcase_12 AC 123 ms
55,484 KB
testcase_13 AC 128 ms
55,544 KB
testcase_14 AC 126 ms
55,684 KB
testcase_15 AC 130 ms
55,708 KB
testcase_16 AC 128 ms
55,700 KB
testcase_17 AC 128 ms
55,840 KB
testcase_18 AC 124 ms
55,440 KB
testcase_19 AC 123 ms
55,728 KB
testcase_20 AC 127 ms
55,472 KB
testcase_21 AC 129 ms
55,684 KB
testcase_22 AC 123 ms
55,464 KB
testcase_23 AC 125 ms
56,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main{
  public static void main(String[] args) throws IOException{
    //a,bの入力
    Scanner scan=new Scanner(System.in);
    long a=scan.nextLong();
    long b=scan.nextLong();
    //a*bの結果を1000000007で割る
    long result=a*b%1000000007;
    //出力
    System.out.println(result);
  }
}
0