結果
問題 |
No.2021 Not A but B
|
ユーザー |
![]() |
提出日時 | 2023-04-01 22:30:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 330 bytes |
コンパイル時間 | 815 ms |
コンパイル使用メモリ | 72,720 KB |
実行使用メモリ | 814,676 KB |
最終ジャッジ日時 | 2024-09-24 12:12:52 |
合計ジャッジ時間 | 3,154 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 4 MLE * 1 -- * 21 |
ソースコード
#include<iostream> #include<string> #include<set> using namespace std; int main() { int n; string s; cin >> n >> s; set<string> res; for (int i = 0; i < n - 1; i++) { string t = s; t[i] = 'B'; t[i + 1] = 'B'; res.insert(t); } cout << res.size() << endl; return 0; }