結果

問題 No.486 3 Straight Win(3連勝)
コンテスト
ユーザー hebiyan
提出日時 2017-05-22 15:20:00
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 319 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 64 ms
コンパイル使用メモリ 7,972 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2026-03-12 18:04:00
合計ジャッジ時間 1,519 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(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))) 
0