結果

問題 No.24 数当てゲーム
コンテスト
ユーザー kokoa1046
提出日時 2017-09-09 21:29:58
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 22 ms / 5,000 ms
+ 290µs
コード長 537 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 21 ms
コンパイル使用メモリ 9,760 KB
実行使用メモリ 16,640 KB
最終ジャッジ日時 2026-11-15 14:28:10
合計ジャッジ時間 2,117 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

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