結果
問題 | No.2021 Not A but B |
ユーザー |
![]() |
提出日時 | 2022-08-07 23:39:21 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 330 bytes |
コンパイル時間 | 2,952 ms |
コンパイル使用メモリ | 250,056 KB |
実行使用メモリ | 817,280 KB |
最終ジャッジ日時 | 2024-09-17 15:27:37 |
合計ジャッジ時間 | 5,163 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 4 MLE * 1 -- * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ set<string> s; int N; cin>>N; string S; cin>>S; for(int i=1;i<N;i++){ char a = S[i-1]; char b = S[i]; S[i-1] = 'B'; S[i] = 'B'; s.insert(S); S[i-1] = a; S[i] = b; } cout<<s.size()<<endl; }