結果
問題 |
No.1464 Number Conversion
|
ユーザー |
|
提出日時 | 2021-05-19 14:51:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 218 bytes |
コンパイル時間 | 82 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,444 KB |
最終ジャッジ日時 | 2024-10-09 18:53:50 |
合計ジャッジ時間 | 3,926 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 RE * 1 TLE * 1 -- * 24 |
ソースコード
n = float(input()) m = [n , 1] n_s = str(n) l = len(n_s.split('.')[1]) while int(m[0]) != m[0]: k = 10 // int(n_s[-1]) m = [k * m[0], k * m[1]] n_s = str(m[0]) print(str(int(m[0])) + '/' + str(m[1]))