結果
| 問題 |
No.1339 循環小数
|
| コンテスト | |
| ユーザー |
t
|
| 提出日時 | 2021-02-06 15:36:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 230 bytes |
| コンパイル時間 | 457 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 17,692 KB |
| 最終ジャッジ日時 | 2024-07-03 00:51:34 |
| 合計ジャッジ時間 | 15,452 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 20 TLE * 1 -- * 15 |
ソースコード
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)
t