ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 8789237f-c331-4e78-9549-01cc0d6fa4a8
コード
#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'; } } cout << str << "MAN" << endl; }
結果
問題
点数
言語
結果
実行時間
メモリ
D - PACMAN
100
C++
AC
17 ms
3904 KiB