結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー |
|
提出日時 | 2017-05-22 15:20:00 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-06-26 04:27:22 |
合計ジャッジ時間 | 1,908 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 |
ソースコード
(define (shori-hantei xs) (let ((east (string-scan xs "OOO")) (west (string-scan xs "XXX"))) (cond ((and (not east) (not west)) "NA") ((not east) "West") ((not west) "East") ((< east west) "East") (else "West")))) (print (shori-hantei (read-line)))