結果
問題 | No.2268 NGワード回避 |
ユーザー |
![]() |
提出日時 | 2023-04-15 10:09:14 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 21 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 2,916 ms |
コンパイル使用メモリ | 244,640 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-10 22:37:44 |
合計ジャッジ時間 | 5,411 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 52 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long; int main(){ int n; cin>>n; string ans =""; for(int i = 0;i<n;i++){ string s; cin>>s; if(s[i]=='a') ans += 'b'; else ans += 'a'; } cout<<ans<<endl; }