結果
| 問題 | No.280 歯車の問題(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-14 17:53:13 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 1,000 ms |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 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 |
ソースコード
(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)))