結果

問題 No.587 七対子
ユーザー ducktailducktail
提出日時 2017-12-20 14:31:17
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 14,264 KB
最終ジャッジ日時 2023-09-27 02:17:30
合計ジャッジ時間 2,844 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
12,168 KB
testcase_01 AC 19 ms
12,204 KB
testcase_02 AC 18 ms
12,284 KB
testcase_03 AC 19 ms
12,468 KB
testcase_04 AC 19 ms
12,164 KB
testcase_05 AC 18 ms
12,368 KB
testcase_06 AC 18 ms
12,260 KB
testcase_07 AC 19 ms
14,168 KB
testcase_08 AC 18 ms
12,188 KB
testcase_09 AC 19 ms
12,404 KB
testcase_10 AC 19 ms
12,256 KB
testcase_11 AC 18 ms
12,288 KB
testcase_12 AC 19 ms
12,232 KB
testcase_13 AC 19 ms
12,224 KB
testcase_14 AC 19 ms
12,324 KB
testcase_15 AC 18 ms
12,176 KB
testcase_16 AC 18 ms
12,288 KB
testcase_17 AC 19 ms
12,256 KB
testcase_18 AC 19 ms
12,164 KB
testcase_19 AC 19 ms
12,184 KB
testcase_20 AC 18 ms
12,396 KB
testcase_21 AC 18 ms
14,264 KB
testcase_22 AC 18 ms
12,300 KB
testcase_23 AC 18 ms
12,180 KB
testcase_24 AC 19 ms
12,220 KB
testcase_25 AC 18 ms
12,376 KB
testcase_26 AC 19 ms
12,284 KB
testcase_27 AC 18 ms
12,320 KB
testcase_28 AC 18 ms
12,260 KB
testcase_29 AC 18 ms
12,316 KB
testcase_30 AC 18 ms
12,196 KB
testcase_31 AC 18 ms
12,364 KB
testcase_32 AC 19 ms
12,280 KB
testcase_33 AC 18 ms
12,372 KB
testcase_34 AC 18 ms
12,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(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)
0