結果
問題 | No.1464 Number Conversion |
ユーザー |
![]() |
提出日時 | 2021-09-17 08:21:03 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 118 ms / 2,000 ms |
コード長 | 202 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 80,256 KB |
最終ジャッジ日時 | 2024-06-29 17:20:55 |
合計ジャッジ時間 | 4,342 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
import math from decimal import Decimal def lcm(a,b): lcm=a*b//math.gcd(a,b) return lcm x=Decimal(input()) x*=10**8 x=int(x) S=x B=10**8 gcd=math.gcd(S,B) print(str(S//gcd)+"/"+str(B//gcd))