結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-12-07 19:47:58 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 5,000 ms |
| + 244µs | |
| コード長 | 126 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 8,704 KB |
| 実行使用メモリ | 14,464 KB |
| 最終ジャッジ日時 | 2026-07-25 14:12:06 |
| 合計ジャッジ時間 | 1,665 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
Main.rb:1: warning: shebang line ending with \r may cause problems Syntax OK
ソースコード
#!/usr/bin/ruby
A=['oda','yukiko']
x=A.index(gets.chomp)
n=$<.map{|e|e.count('w')+e.count('b')}.reduce(:+)
puts A[(x+n)%2]