結果
| 問題 | No.1464 Number Conversion | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-03-26 09:32:11 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 36 ms / 2,000 ms | 
| コード長 | 175 bytes | 
| コンパイル時間 | 341 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 11,008 KB | 
| 最終ジャッジ日時 | 2025-03-26 09:32:14 | 
| 合計ジャッジ時間 | 2,812 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 29 | 
ソースコード
from decimal import Decimal
import math
x = Decimal(input())
r = 1
while x - int(x) != 0:
    x *= 10
    r *= 10
x = int(x)
g = math.gcd(x, r)
print(f'{x // g}/{r // g}') 
            
            
            
        