Submission #5993864


Source Code Expand

Copy
def main():
  s=input()
 
  s = s.replace('dream','')
  s = s.replace('dreamer','')
  s = s.replace('erase','')
  s = s.replace('eraser','')

  if s=='':
    print('YES')
  else:
    print('NO')
  
if __name__=='__main__':
  main()

Submission Info

Submission Time
Task ABC049C - 白昼夢 / Daydream
User Slowpoke
Language Python3 (3.4.3)
Score 0
Code Size 245 Byte
Status
Exec Time 18 ms
Memory 3188 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 subtask0_0.txt, subtask0_1.txt, subtask0_2.txt
All 0 / 300 subtask0_0.txt, subtask0_1.txt, subtask0_2.txt, subtask1_0.txt, subtask1_1.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_2.txt, subtask1_3.txt, subtask1_4.txt, subtask1_5.txt, subtask1_6.txt, subtask1_7.txt, subtask1_8.txt, subtask1_9.txt
Case Name Status Exec Time Memory
subtask0_0.txt 17 ms 2940 KB
subtask0_1.txt 16 ms 2940 KB
subtask0_2.txt 17 ms 2940 KB
subtask1_0.txt 18 ms 3188 KB
subtask1_1.txt 18 ms 3188 KB
subtask1_10.txt 18 ms 3188 KB
subtask1_11.txt 18 ms 3188 KB
subtask1_12.txt 18 ms 3188 KB
subtask1_13.txt 18 ms 3188 KB
subtask1_14.txt 18 ms 3188 KB
subtask1_15.txt 18 ms 3188 KB
subtask1_2.txt 18 ms 3188 KB
subtask1_3.txt 18 ms 3188 KB
subtask1_4.txt 18 ms 3188 KB
subtask1_5.txt 18 ms 3188 KB
subtask1_6.txt 18 ms 3188 KB
subtask1_7.txt 18 ms 3188 KB
subtask1_8.txt 18 ms 3188 KB
subtask1_9.txt 18 ms 3188 KB