結果
問題 |
No.2102 [Cherry Alpha *] Conditional Reflection
|
ユーザー |
![]() |
提出日時 | 2022-10-14 22:08:37 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 444 bytes |
コンパイル時間 | 2,818 ms |
コンパイル使用メモリ | 250,624 KB |
実行使用メモリ | 804,368 KB |
最終ジャッジ日時 | 2024-06-26 14:47:45 |
合計ジャッジ時間 | 56,279 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 38 MLE * 1 -- * 17 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; set<string> st; for(int i=0;i<n;i++){ string s; cin>>s; if(st.find(s)!=st.end()){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } for(int j=0;j<(int)s.size()-1;j++){ swap(s[j],s[j+1]); st.insert(s); swap(s[j],s[j+1]); } } return 0; }