結果
問題 |
No.280 歯車の問題(1)
|
ユーザー |
![]() |
提出日時 | 2015-09-22 15:42:01 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 268 bytes |
コンパイル時間 | 144 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 16,768 KB |
最終ジャッジ日時 | 2024-07-19 08:38:15 |
合計ジャッジ時間 | 3,323 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 31 |
ソースコード
#!/usr/bin/env gosh (read-line) (let ((gears (read (open-input-string (string-append "(" (read-line) ")"))))) (define (iter lst acc) (if (null? lst) acc (iter (cdr lst) (/ (car lst) acc)))) (display (iter (cdr gears) (car gears))) (newline))