結果
| 問題 | No.280 歯車の問題(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-14 17:53:13 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
不安定
|
| 実行時間 | 19 ms / 1,000 ms |
| + 479µs | |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 3 ms |
| コンパイル使用メモリ | 7,724 KB |
| 実行使用メモリ | 16,000 KB |
| 最終ジャッジ日時 | 2026-10-31 09:13:31 |
| 合計ジャッジ時間 | 3,782 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
ソースコード
(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)))