ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 6ffae529-9a34-4c37-aeb0-2526e98313f8
コード
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; for (int i = 0; i < 100000; i++) { if (S[i] == 'A') S[i] = 'P'; else if (S[i] == 'C') S[i] = 'A'; else S[i] = 'C'; } cout << S'MAN' << endl; }
結果
問題
点数
言語
結果
実行時間
メモリ
D - PACMAN
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp:12:14: warning: multi-character character constant [-Wmultichar] 12 | cout << S'MAN' << endl; | ^~~~~ Main.cpp: In function 'int main()': Main.cpp:12:14: error: expected ';' before '\x4d414e' 12 | cout << S'MAN' << endl; | ^~~~~ | ;