ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 55ff3e96-174e-40da-b142-c6b622e852c8
コード
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; int count = 0; for (int i = 0; i < str.size(); i++) { if (str.at(i) == 'A') { str.at(i) == 'P'; }else if (str.at(i) == 'C') { str.at(i) == 'A'; }else if (str.at(i) == 'P') { str.at(i) == 'C'; } } cout << str+"MAN" << endl; }
結果
問題
点数
言語
結果
実行時間
メモリ
D - PACMAN
0
C++
WA
24 ms
3980 KiB