結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
|
提出日時 | 2024-09-20 16:49:41 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 373 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 16,896 KB |
最終ジャッジ日時 | 2024-09-20 16:49:54 |
合計ジャッジ時間 | 1,259 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
(use gauche.collection) (define (f xs) (cond ((equal? xs '(2 3)) "FULL HOUSE") ((equal? xs '(1 1 3)) "THREE CARD") ((equal? xs '(1 2 2)) "TWO PAIR") ((equal? xs '(1 1 1 2)) "ONE PAIR") (else "NO HAND"))) (define yuki227 (print (f (sort (map length (group-collection (sort (list (read) (read) (read) (read) (read)))))))))