結果

問題 No.88 次はどっちだ
ユーザー nukosukenukosuke
提出日時 2016-10-19 18:40:57
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 497 ms / 5,000 ms
コード長 279 bytes
コンパイル時間 479 ms
コンパイル使用メモリ 135,984 KB
実行使用メモリ 137,296 KB
最終ジャッジ日時 2024-05-03 13:21:21
合計ジャッジ時間 6,836 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 474 ms
137,160 KB
testcase_01 AC 481 ms
135,780 KB
testcase_02 AC 473 ms
136,188 KB
testcase_03 AC 479 ms
135,808 KB
testcase_04 AC 480 ms
137,296 KB
testcase_05 AC 483 ms
135,392 KB
testcase_06 AC 476 ms
135,400 KB
testcase_07 AC 497 ms
135,256 KB
testcase_08 AC 479 ms
135,652 KB
testcase_09 AC 477 ms
135,940 KB
testcase_10 AC 477 ms
135,552 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