結果

問題 No.1902 AC Ratio
ユーザー simansiman
提出日時 2022-04-14 05:14:22
言語 Ruby
(3.3.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 72 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 11,340 KB
実行使用メモリ 15,728 KB
最終ジャッジ日時 2023-08-25 19:00:11
合計ジャッジ時間 3,246 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,632 KB
testcase_01 AC 79 ms
15,572 KB
testcase_02 AC 78 ms
15,676 KB
testcase_03 AC 82 ms
15,668 KB
testcase_04 AC 79 ms
15,668 KB
testcase_05 AC 80 ms
15,728 KB
testcase_06 AC 77 ms
15,400 KB
testcase_07 AC 78 ms
15,416 KB
testcase_08 AC 78 ms
15,524 KB
testcase_09 AC 78 ms
15,488 KB
testcase_10 AC 79 ms
15,504 KB
testcase_11 AC 77 ms
15,668 KB
testcase_12 AC 76 ms
15,632 KB
testcase_13 AC 76 ms
15,388 KB
testcase_14 AC 77 ms
15,500 KB
testcase_15 AC 77 ms
15,648 KB
testcase_16 AC 77 ms
15,456 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

S = gets.chomp
A, B = S.split('/')


puts Rational(A, B).to_f.round(12)
0