結果
問題 | No.1339 循環小数 |
ユーザー | t |
提出日時 | 2021-02-06 15:36:09 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 1,062 ms |
コンパイル使用メモリ | 10,636 KB |
実行使用メモリ | 8,752 KB |
最終ジャッジ日時 | 2023-09-15 23:36:53 |
合計ジャッジ時間 | 13,867 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,904 KB |
testcase_01 | AC | 23 ms
7,776 KB |
testcase_02 | AC | 22 ms
7,780 KB |
testcase_03 | AC | 21 ms
7,788 KB |
testcase_04 | AC | 22 ms
7,780 KB |
testcase_05 | AC | 23 ms
7,836 KB |
testcase_06 | AC | 26 ms
7,836 KB |
testcase_07 | AC | 22 ms
7,808 KB |
testcase_08 | AC | 23 ms
7,836 KB |
testcase_09 | AC | 25 ms
7,784 KB |
testcase_10 | AC | 22 ms
7,764 KB |
testcase_11 | AC | 956 ms
7,760 KB |
testcase_12 | AC | 1,067 ms
7,864 KB |
testcase_13 | AC | 748 ms
7,812 KB |
testcase_14 | AC | 888 ms
7,844 KB |
testcase_15 | AC | 865 ms
7,848 KB |
testcase_16 | AC | 749 ms
7,760 KB |
testcase_17 | AC | 1,127 ms
7,916 KB |
testcase_18 | AC | 645 ms
7,836 KB |
testcase_19 | AC | 638 ms
7,836 KB |
testcase_20 | AC | 575 ms
7,784 KB |
testcase_21 | TLE | - |
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 | -- | - |
ソースコード
T = int(input()) for i in range(T): N = int(input()) while N%2 == 0: N = N//2 while N%5 == 0: N = N//5 d = 1 if pow(10, d, N) != 0: while pow(10, d, N) != 1: d += 1 print(d) else: print(1)