結果
問題 | No.24 数当てゲーム |
ユーザー |
![]() |
提出日時 | 2017-09-09 21:29:58 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 28 ms / 5,000 ms |
コード長 | 537 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 16,512 KB |
最終ジャッジ日時 | 2024-11-07 10:12:47 |
合計ジャッジ時間 | 957 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
; 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))