結果
問題 |
No.2021 Not A but B
|
ユーザー |
|
提出日時 | 2022-07-29 21:38:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 390 bytes |
コンパイル時間 | 1,537 ms |
コンパイル使用メモリ | 172,164 KB |
実行使用メモリ | 817,492 KB |
最終ジャッジ日時 | 2024-07-19 13:54:44 |
合計ジャッジ時間 | 3,298 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 4 MLE * 1 -- * 21 |
ソースコード
#include <bits/stdc++.h> #define ll long long using namespace std; #define all(v) v.begin(), v.end() #define rep(i,n) for (long long i=0;i<(long long)(n);i++) int main() { int N; string S; cin >> N >> S; set<string> ans; rep(i,N-1){ string temp=S; temp[i] = 'B'; temp[i+1] = 'B'; ans.insert(temp); } cout << ans.size() << endl; }