結果

問題 No.24 数当てゲーム
コンテスト
ユーザー kokoa1046
提出日時 2017-09-09 21:29:58
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 537 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 57 ms
コンパイル使用メモリ 7,968 KB
実行使用メモリ 16,768 KB
最終ジャッジ日時 2026-05-07 18:24:52
合計ジャッジ時間 1,002 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

; Here your code !
(use srfi-1)
(define n (read))
(define (readn n)  (if (= n 0) '() (cons (x->string(read)) (readn (- n 1)) ) ))
(define (reader n)(if(= n 0)'()(cons (readn 5) (reader (- n 1)))))
(define (makeomega n m) (map (lambda (x) (+ x m)) (iota n)) )
(define omega (makeomega 10 0))
(set! omega (map x->string omega))
(define lis (reader n))
(for-each (lambda (x) (begin ()(if (string=? "YES" (last x))(set! omega (lset-intersection string=? omega x))(set! omega (lset-difference string=? omega x)) ))) lis)
(print (car omega))

0