結果
| 問題 | No.280 歯車の問題(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-14 17:53:13 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
不安定
|
| 実行時間 | 17 ms / 1,000 ms |
| + 448µs | |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 29 ms |
| コンパイル使用メモリ | 6,528 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2026-09-12 15:29:28 |
| 合計ジャッジ時間 | 3,332 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_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)))