結果
問題 |
No.280 歯車の問題(1)
|
ユーザー |
|
提出日時 | 2016-06-14 17:53:13 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 27 ms / 1,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 7,076 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-10-09 13:34:06 |
合計ジャッジ時間 | 3,809 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
(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)))