Submission #8715724


Source Code Expand

Copy
<?php
$input = trim(fgets(STDIN));
$len = strlen($input);

for ($i = 0; $i < $len; $i++) {
  $currentChar = $input[$i];
  if ($i % 2 === 0 && $currentChar === 'L' ||
      $i % 2 === 1 && $currentChar === 'R'
     ) {
    echo 'No';
    return;
  }
}

echo 'Yes';

Submission Info

Submission Time
Task B - Tap Dance
User panda_program
Language PHP7 (7.0.15)
Score 200
Code Size 277 Byte
Status
Exec Time 15 ms
Memory 4728 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, sample_05.txt
Subtask1 200 / 200 sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, sample_05.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt, sub1_05.txt, sub1_06.txt, sub1_07.txt, sub1_08.txt, sub1_09.txt, sub1_10.txt, sub1_11.txt, sub1_12.txt, sub1_13.txt, sub1_14.txt, sub1_15.txt
Case Name Status Exec Time Memory
sample_01.txt 15 ms 4728 KB
sample_02.txt 9 ms 4604 KB
sample_03.txt 9 ms 4604 KB
sample_04.txt 9 ms 4604 KB
sample_05.txt 9 ms 4604 KB
sub1_01.txt 9 ms 4604 KB
sub1_02.txt 9 ms 4604 KB
sub1_03.txt 9 ms 4604 KB
sub1_04.txt 9 ms 4604 KB
sub1_05.txt 9 ms 4604 KB
sub1_06.txt 9 ms 4604 KB
sub1_07.txt 9 ms 4604 KB
sub1_08.txt 9 ms 4604 KB
sub1_09.txt 9 ms 4604 KB
sub1_10.txt 9 ms 4604 KB
sub1_11.txt 9 ms 4604 KB
sub1_12.txt 9 ms 4604 KB
sub1_13.txt 9 ms 4604 KB
sub1_14.txt 9 ms 4604 KB
sub1_15.txt 9 ms 4604 KB