結果

問題 No.280 歯車の問題(1)
ユーザー yusakayusaka
提出日時 2015-09-22 15:55:58
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 249 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 13,832 KB
最終ジャッジ日時 2023-09-26 14:25:11
合計ジャッジ時間 4,753 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,624 KB
testcase_01 AC 18 ms
11,684 KB
testcase_02 AC 17 ms
11,688 KB
testcase_03 AC 17 ms
11,776 KB
testcase_04 AC 18 ms
11,536 KB
testcase_05 AC 18 ms
11,596 KB
testcase_06 AC 17 ms
11,800 KB
testcase_07 AC 17 ms
11,808 KB
testcase_08 AC 17 ms
11,692 KB
testcase_09 AC 17 ms
11,784 KB
testcase_10 AC 17 ms
11,684 KB
testcase_11 AC 19 ms
11,800 KB
testcase_12 AC 18 ms
11,696 KB
testcase_13 AC 18 ms
11,624 KB
testcase_14 AC 17 ms
11,592 KB
testcase_15 AC 17 ms
11,792 KB
testcase_16 AC 17 ms
11,692 KB
testcase_17 AC 17 ms
11,820 KB
testcase_18 AC 17 ms
11,676 KB
testcase_19 AC 18 ms
11,624 KB
testcase_20 AC 18 ms
11,684 KB
testcase_21 AC 18 ms
11,628 KB
testcase_22 AC 17 ms
11,688 KB
testcase_23 AC 18 ms
13,832 KB
testcase_24 AC 18 ms
11,800 KB
testcase_25 AC 17 ms
11,604 KB
testcase_26 AC 18 ms
11,548 KB
testcase_27 AC 18 ms
11,640 KB
testcase_28 AC 18 ms
11,784 KB
testcase_29 AC 18 ms
11,684 KB
testcase_30 AC 17 ms
11,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env gosh
(read-line)
(let ((gears (read (open-input-string (string-append "(" (read-line) ")")))))
  (define r (/ (car (reverse gears)) (car gears)))
  (if (integer? r)
      (display (format "~D/~D" r 1))
      (display r))
  (newline))
0