結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー |
![]() |
提出日時 | 2017-06-24 05:47:14 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 98 ms / 2,000 ms |
コード長 | 228 bytes |
コンパイル時間 | 56 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-06-26 04:29:30 |
合計ジャッジ時間 | 3,692 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 |
コンパイルメッセージ
Syntax OK
ソースコード
s=gets.chompw=0e=0i=0while s.size>ic=s[i]if c=="O" thene=e+1w=0elsew=w+1e=0endif e==3 thenputs "East"breakelsif w==3 thenputs "West"breakendi=i+1endif w<3 && e<3 thenputs "NA"end