結果
問題 |
No.2021 Not A but B
|
ユーザー |
|
提出日時 | 2022-07-29 21:44:29 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 738 bytes |
コンパイル時間 | 2,881 ms |
コンパイル使用メモリ | 250,216 KB |
実行使用メモリ | 817,232 KB |
最終ジャッジ日時 | 2024-07-19 14:07:46 |
合計ジャッジ時間 | 4,785 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 4 MLE * 1 -- * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ch = char; using ll = long long; using ld = long double; using db = double; using st = string; using vdb = vector<db>; using vvdb = vector<vdb>; using vl = vector<ll>; using vvl = vector<vl>; using vd = vector<ld>; using vvd = vector<vd>; using vs = vector<st>; using vvs = vector<vs>; using vc = vector<ch>; using vvc = vector<vc>; using vb = vector<bool>; using vvb = vector<vb>; const ll mod = 998244353; const ll MOD = 1000000007; using vp = vector<pair<ll,ll>>; #define fi first #define se second int main(){ ll N; cin>>N; st S; cin>>S; set<st> X; for(int i=0; i<N-1; i++){ st T=S; T.at(i)='B'; T.at(i+1)='B'; X.insert(T); } cout<<X.size()<<endl; }