結果
| 問題 | No.1464 Number Conversion |
| コンテスト | |
| ユーザー |
hiraku
|
| 提出日時 | 2021-04-02 22:21:00 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 106 ms / 2,000 ms |
| コード長 | 125 bytes |
| 記録 | |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 20,572 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-29 18:24:49 |
| 合計ジャッジ時間 | 4,755 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
from fractions import Fraction
n = input()
ans = str(Fraction(n))
if "/" in ans:
print(ans)
else:
print(ans + "/1")
hiraku