結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー sysnote8mainsysnote8main
提出日時 2023-05-07 16:46:44
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 3,636 ms
コンパイル使用メモリ 75,144 KB
実行使用メモリ 41,736 KB
最終ジャッジ日時 2024-05-03 15:03:14
合計ジャッジ時間 11,571 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
41,296 KB
testcase_01 AC 135 ms
41,224 KB
testcase_02 WA -
testcase_03 AC 133 ms
40,984 KB
testcase_04 AC 119 ms
40,112 KB
testcase_05 AC 135 ms
41,452 KB
testcase_06 AC 136 ms
41,416 KB
testcase_07 AC 133 ms
41,208 KB
testcase_08 AC 138 ms
41,216 KB
testcase_09 AC 137 ms
41,128 KB
testcase_10 AC 120 ms
40,240 KB
testcase_11 AC 135 ms
41,184 KB
testcase_12 AC 136 ms
41,168 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Arbitrary_Mod_2007 {
    public static void log(Object obj) {
        System.out.println(obj.toString());
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = 10000000;
        long h = (long) Math.floor(Math.pow(sc.nextLong(),sc.nextLong()));
        log(x);
        log(h%x);
    }
}
0