結果

問題 No.300 平方数
ユーザー kano_townkano_town
提出日時 2015-11-14 11:20:34
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 376 bytes
コンパイル時間 3,473 ms
コンパイル使用メモリ 72,232 KB
実行使用メモリ 56,428 KB
最終ジャッジ日時 2023-10-11 17:42:50
合計ジャッジ時間 11,621 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
55,420 KB
testcase_01 AC 140 ms
55,776 KB
testcase_02 AC 139 ms
55,400 KB
testcase_03 AC 145 ms
55,524 KB
testcase_04 AC 139 ms
55,736 KB
testcase_05 AC 140 ms
55,656 KB
testcase_06 AC 138 ms
55,548 KB
testcase_07 AC 137 ms
55,648 KB
testcase_08 WA -
testcase_09 AC 138 ms
55,844 KB
testcase_10 AC 140 ms
55,756 KB
testcase_11 AC 139 ms
55,640 KB
testcase_12 WA -
testcase_13 AC 139 ms
56,424 KB
testcase_14 WA -
testcase_15 AC 140 ms
56,060 KB
testcase_16 AC 142 ms
55,644 KB
testcase_17 AC 140 ms
55,744 KB
testcase_18 AC 142 ms
55,928 KB
testcase_19 AC 140 ms
55,924 KB
testcase_20 AC 139 ms
55,920 KB
testcase_21 AC 140 ms
55,956 KB
testcase_22 AC 139 ms
55,804 KB
testcase_23 WA -
testcase_24 AC 141 ms
55,728 KB
testcase_25 AC 140 ms
55,700 KB
testcase_26 AC 141 ms
55,992 KB
testcase_27 AC 140 ms
55,720 KB
testcase_28 AC 140 ms
55,808 KB
testcase_29 AC 139 ms
53,648 KB
testcase_30 AC 139 ms
55,900 KB
testcase_31 AC 139 ms
55,924 KB
testcase_32 AC 139 ms
54,024 KB
testcase_33 AC 138 ms
56,260 KB
testcase_34 AC 139 ms
55,920 KB
testcase_35 AC 139 ms
56,240 KB
testcase_36 AC 137 ms
55,904 KB
testcase_37 AC 138 ms
55,932 KB
testcase_38 WA -
testcase_39 AC 138 ms
55,544 KB
testcase_40 AC 139 ms
56,144 KB
testcase_41 AC 140 ms
55,572 KB
testcase_42 AC 138 ms
55,960 KB
testcase_43 WA -
testcase_44 AC 139 ms
56,376 KB
testcase_45 AC 139 ms
55,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yukicoder300 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int cnt;
        long x = sc.nextLong(), y = 1, i;

        for (i = 2; i < 1000000; i++) {
            if (x % (i * i) == 0) {
                x /= (i * i);
            }
        }

        System.out.println(x);
    }
}
0