ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 7b4189c5-ce8f-44e3-86ed-808fc7e544e0
コード
#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{ str.at(i) == 'C'; } i++; } cout << str << "MAN" << endl; }
結果
問題
点数
言語
結果
実行時間
メモリ
D - PACMAN
0
C++
WA
4 ms
3936 KiB