結果

問題 No.486 3 Straight Win(3連勝)
ユーザー hebiyanhebiyan
提出日時 2017-05-22 15:20:00
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 5,220 KB
実行使用メモリ 11,840 KB
最終ジャッジ日時 2023-09-08 11:08:37
合計ジャッジ時間 1,919 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,680 KB
testcase_01 AC 17 ms
11,624 KB
testcase_02 AC 18 ms
11,788 KB
testcase_03 AC 17 ms
11,792 KB
testcase_04 AC 18 ms
11,676 KB
testcase_05 AC 17 ms
11,684 KB
testcase_06 AC 18 ms
11,552 KB
testcase_07 AC 17 ms
11,536 KB
testcase_08 AC 18 ms
11,536 KB
testcase_09 AC 18 ms
11,820 KB
testcase_10 AC 17 ms
11,784 KB
testcase_11 AC 17 ms
11,684 KB
testcase_12 AC 18 ms
11,696 KB
testcase_13 AC 17 ms
11,800 KB
testcase_14 AC 17 ms
11,532 KB
testcase_15 AC 17 ms
11,712 KB
testcase_16 AC 17 ms
11,576 KB
testcase_17 AC 18 ms
11,840 KB
testcase_18 AC 17 ms
11,680 KB
testcase_19 AC 18 ms
11,696 KB
testcase_20 AC 18 ms
11,680 KB
testcase_21 AC 17 ms
11,540 KB
testcase_22 AC 17 ms
11,800 KB
testcase_23 AC 17 ms
11,680 KB
testcase_24 AC 18 ms
11,824 KB
testcase_25 AC 17 ms
11,540 KB
testcase_26 AC 18 ms
11,620 KB
testcase_27 AC 17 ms
11,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(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