結果

問題 No.280 歯車の問題(1)
コンテスト
ユーザー niyarin
提出日時 2016-06-14 17:53:13
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 32 ms / 1,000 ms
コード長 271 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 74 ms
コンパイル使用メモリ 6,528 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2026-04-25 16:54:52
合計ジャッジ時間 3,694 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(define N (read ))
(define x (read))
(let foo ((a (- N 2 ) ) ) (if (= a 0 ) '() (let ()(read)(foo ( - a 1 ) ) )))
(define y (read))

(let ((p x )(q  y ))
  (let ((r (/ x y )))
    (display (denominator r))
    (display "/" ) 
    (display (numerator r ))
    (newline)))
0