結果

問題 No.2102 [Cherry Alpha *] Conditional Reflection
ユーザー keisuke6keisuke6
提出日時 2022-10-14 21:47:01
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 516 bytes
コンパイル時間 2,114 ms
コンパイル使用メモリ 206,520 KB
実行使用メモリ 22,640 KB
最終ジャッジ日時 2023-09-08 20:44:38
合計ジャッジ時間 37,721 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
8,756 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 265 ms
11,476 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 187 ms
8,576 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 531 ms
15,212 KB
testcase_43 AC 504 ms
15,124 KB
testcase_44 AC 503 ms
15,124 KB
testcase_45 AC 521 ms
15,108 KB
testcase_46 AC 527 ms
15,168 KB
testcase_47 AC 303 ms
10,484 KB
testcase_48 AC 303 ms
10,660 KB
testcase_49 AC 304 ms
10,392 KB
testcase_50 AC 305 ms
10,420 KB
testcase_51 AC 306 ms
10,524 KB
testcase_52 AC 25 ms
5,160 KB
testcase_53 AC 25 ms
5,088 KB
testcase_54 AC 25 ms
5,104 KB
testcase_55 AC 67 ms
6,060 KB
testcase_56 AC 67 ms
5,936 KB
testcase_57 AC 68 ms
6,168 KB
testcase_58 TLE -
testcase_59 -- -
testcase_60 -- -
testcase_61 -- -
testcase_62 -- -
testcase_63 -- -
testcase_64 -- -
testcase_65 -- -
testcase_66 -- -
testcase_67 -- -
testcase_68 -- -
testcase_69 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  int N;
  cin>>N;
  vector<string> S(N);
  set<string> s;
  for(int i=0;i<N;i++){
      cin>>S[i];
      bool ok = true;
      for(int j=1;j<S[i].size();j++){
          swap(S[i][j],S[i][j-1]);
          if(s.count(S[i])){
              ok = false;
              swap(S[i][j],S[i][j-1]);
              break;
          }
          swap(S[i][j],S[i][j-1]);
      }
      cout<<(ok ? "No" : "Yes")<<endl;
      s.insert(S[i]);
  } 
}
0