結果
問題 | No.88 次はどっちだ |
ユーザー |
|
提出日時 | 2018-03-28 01:06:25 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 90 ms / 5,000 ms |
コード長 | 201 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-06-25 13:01:55 |
合計ジャッジ時間 | 1,649 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
Syntax OK
ソースコード
players = %w[oda yukiko]S = gets.chompstone_num = 0readlines.each do |l|stone_num += l.scan(/[wb]/).sizeendif stone_num.odd?puts (players - [S]).firstelseputs (players & [S]).firstend