結果
問題 | No.300 平方数 |
ユーザー | kohaku_kohaku |
提出日時 | 2016-11-16 22:47:08 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 3,450 ms |
コンパイル使用メモリ | 71,284 KB |
実行使用メモリ | 60,484 KB |
最終ジャッジ日時 | 2023-08-17 07:41:04 |
合計ジャッジ時間 | 6,202 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 115 ms
60,484 KB |
testcase_01 | AC | 114 ms
54,104 KB |
testcase_02 | AC | 120 ms
55,780 KB |
testcase_03 | AC | 116 ms
56,112 KB |
testcase_04 | AC | 115 ms
55,792 KB |
testcase_05 | AC | 114 ms
55,752 KB |
testcase_06 | AC | 119 ms
56,024 KB |
testcase_07 | AC | 111 ms
55,492 KB |
testcase_08 | WA | - |
testcase_09 | AC | 116 ms
55,452 KB |
testcase_10 | AC | 118 ms
55,904 KB |
testcase_11 | AC | 113 ms
55,452 KB |
testcase_12 | WA | - |
testcase_13 | TLE | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
testcase_39 | -- | - |
testcase_40 | -- | - |
testcase_41 | -- | - |
testcase_42 | -- | - |
testcase_43 | -- | - |
testcase_44 | -- | - |
testcase_45 | -- | - |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long X = sc.nextLong(); for(long i=2; i<X; i++){ if( X%(i*i)==0 ){ X=X/(i*i); } } System.out.println(X); } }