Submission #7519441


Source Code Expand

Copy
#!/usr/bin/env python3


def judge(s):
    for i, c in enumerate(s):
        if i % 2 == 0 and c == "L" or i % 2 == 1 and c == "R":
            return False
    return True


def main():
    s = input()
    print("Yes" if judge(s) else "No")


if __name__ == "__main__":
    main()

Submission Info

Submission Time
Task B - Tap Dance
User hamukichi
Language Python (3.4.3)
Score 200
Code Size 299 Byte
Status AC
Exec Time 19 ms
Memory 3064 KB

Judge Result

Set Name Sample Subtask1
Score / Max Score 0 / 0 200 / 200
Status
AC × 5
AC × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, sample_05.txt
Subtask1 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 AC 18 ms 2940 KB
sample_02.txt AC 17 ms 2940 KB
sample_03.txt AC 18 ms 2940 KB
sample_04.txt AC 18 ms 2940 KB
sample_05.txt AC 18 ms 2940 KB
sub1_01.txt AC 18 ms 2940 KB
sub1_02.txt AC 18 ms 2940 KB
sub1_03.txt AC 18 ms 2940 KB
sub1_04.txt AC 18 ms 2940 KB
sub1_05.txt AC 18 ms 2940 KB
sub1_06.txt AC 18 ms 2940 KB
sub1_07.txt AC 18 ms 2940 KB
sub1_08.txt AC 18 ms 2940 KB
sub1_09.txt AC 18 ms 2940 KB
sub1_10.txt AC 18 ms 3064 KB
sub1_11.txt AC 18 ms 2940 KB
sub1_12.txt AC 18 ms 2940 KB
sub1_13.txt AC 19 ms 2940 KB
sub1_14.txt AC 18 ms 2940 KB
sub1_15.txt AC 18 ms 2940 KB