【題解】AtCoder Nomura 2020 B – Postdocs

【題目敘述】https://atcoder.jp/contests/nomura2020/tasks/nomura2020_b

#include <iostream>
using namespace std;

string s;

int main() {
    cin >> s;
    for (char &i:s){
        if (i == '?') i = 'D';
    }
    cout << s;
}

分享本文 Share with friends