結果

問題 No.88 次はどっちだ
ユーザー nukosukenukosuke
提出日時 2016-10-19 18:40:57
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 465 ms / 5,000 ms
コード長 279 bytes
コンパイル時間 553 ms
コンパイル使用メモリ 131,640 KB
実行使用メモリ 134,516 KB
最終ジャッジ日時 2023-08-16 03:51:21
合計ジャッジ時間 7,555 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 448 ms
132,468 KB
testcase_01 AC 446 ms
132,384 KB
testcase_02 AC 444 ms
132,572 KB
testcase_03 AC 446 ms
134,516 KB
testcase_04 AC 446 ms
132,612 KB
testcase_05 AC 450 ms
132,412 KB
testcase_06 AC 463 ms
132,620 KB
testcase_07 AC 460 ms
132,480 KB
testcase_08 AC 458 ms
132,560 KB
testcase_09 AC 459 ms
132,616 KB
testcase_10 AC 465 ms
132,480 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

use v6;

my $S = get();
my $count = 0;

for 1..8 {
  my @B = get().split('');
  for 1..8 {
    if @B[$_] ne '.' {
      $count++;
    }
  }
}

given $S {
  when 'oda' { say ($count % 2 == 0 ?? 'oda' !! 'yukiko') }
  when 'yukiko' { say ($count % 2 == 0 ?? 'yukiko' !! 'oda') }
}
0