結果
| 問題 | No.587 七対子 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-12-20 14:31:17 | 
| 言語 | Scheme (Gauche-0.9.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 30 ms / 2,000 ms | 
| コード長 | 322 bytes | 
| コンパイル時間 | 70 ms | 
| コンパイル使用メモリ | 5,376 KB | 
| 実行使用メモリ | 16,896 KB | 
| 最終ジャッジ日時 | 2024-07-19 19:49:05 | 
| 合計ジャッジ時間 | 2,616 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 35 | 
ソースコード
(use gauche.collection)
(define (main args)
  (let* ([s (group-collection (string->list (read-line)))]
         [gl (map (lambda (x) (cons (length x) (car x))) s)])
    (print
     (if (= 6 (length (filter (lambda (x) (= 2 (car x))) gl)))
         (cdr (find (lambda (x) (= 1 (car x))) gl))
         "Impossible")))
  0)
            
            
            
        