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