Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.

book
String Reflection

A string consisting only of the characters b, d and w is painted on a glass window of a store. Alex walks past the store, standing directly in front of the glass window, and observes string s. Alex then heads inside the store, looks directly at the same glass window, and observes string r.

Alex gives you string s. Your task is to find and output string r.

Example 1

Input:

dwd

Output:

bwb

Example 2

Input:

bbwwwddd

Output:

bbbwwwdd
main.cpp

main.cpp

C++

AIに質問する

expand

AIに質問する

ChatGPT

䜕でも質問するか、提案された質問の1぀を詊しおチャットを始めおください

some-alt