Back
Close

Simple Cypher

Statement

 Goal

Use the given the message and decoder to find the decoded message.
Input
Line 1: String message.
Line 2: String decoder.
Output
Line 1: String decoded message.
Constraints
1 >= message Length <= 256
decoder Length = message length
decoder characters either "S" or "E"
Example
Input
213
ESE
Output
123

Game modes
Reverse

Test cases
Easy as 123 Test
Input
213 ESE
Output
123

Easy as 123 Validator Validator
Input
435 SSE
Output
345

All E Test
Input
input EEEEE
Output
input

All E Validator Validator
Input
inputvalidator EEEEEEEEEEEEEE
Output
inputvalidator

All S Test
Input
input SSSSS
Output
tupni

All S Validator Validator
Input
inputvalidator SSSSSSSSSSSSSS
Output
rotadilavtupni

Hello World! Test
Input
oworllledH! SSEEESESSESE
Output
Hello world!

Hello World Validator! Validator
Input
ldrow! oll ValideaHtor SESSSESSSSEEEEEESESEEE
Output
Hello world! Validator

Sentence test Test
Input
umjp xedof nwo ovrer b kcithe lazuq ey dohgT. SESESSEESSSSSSEEESEEESSSSSEEEEEEESSSSEEEESESE
Output
The quick brown fox jumped over the lazy dog.

Sentence test Validator Validator
Input
The quick brown fox jumped over the lazy dog. SESESSEESSSSSSEEESEEESSSSSEEEEEEESSSSEEEESESE
Output
gdl ehdepmuoworb kuqeTh icn fx j over tazy o.

Solution language

Solution

Stub generator input