結果

問題 No.2102 [Cherry Alpha *] Conditional Reflection
ユーザー たたき@競プロたたき@競プロ
提出日時 2023-07-11 03:18:19
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
MLE  
実行時間 -
コード長 570 bytes
コンパイル時間 3,254 ms
コンパイル使用メモリ 250,632 KB
実行使用メモリ 811,692 KB
最終ジャッジ日時 2023-10-10 01:33:08
合計ジャッジ時間 63,673 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,372 KB
testcase_01 AC 1 ms
4,372 KB
testcase_02 AC 699 ms
31,608 KB
testcase_03 AC 929 ms
46,864 KB
testcase_04 AC 801 ms
30,064 KB
testcase_05 AC 526 ms
14,712 KB
testcase_06 AC 872 ms
31,992 KB
testcase_07 AC 842 ms
92,800 KB
testcase_08 AC 193 ms
4,488 KB
testcase_09 AC 894 ms
55,124 KB
testcase_10 AC 303 ms
10,972 KB
testcase_11 AC 290 ms
21,232 KB
testcase_12 AC 607 ms
30,032 KB
testcase_13 AC 1,104 ms
62,020 KB
testcase_14 AC 652 ms
22,356 KB
testcase_15 AC 943 ms
33,544 KB
testcase_16 AC 1,354 ms
59,564 KB
testcase_17 AC 510 ms
54,416 KB
testcase_18 AC 926 ms
73,092 KB
testcase_19 AC 428 ms
18,340 KB
testcase_20 AC 1,186 ms
66,116 KB
testcase_21 AC 335 ms
5,176 KB
testcase_22 AC 1,582 ms
69,448 KB
testcase_23 AC 1,449 ms
69,280 KB
testcase_24 AC 1,503 ms
69,248 KB
testcase_25 AC 1,499 ms
69,440 KB
testcase_26 AC 1,531 ms
69,380 KB
testcase_27 AC 1,488 ms
69,412 KB
testcase_28 AC 1,536 ms
69,440 KB
testcase_29 AC 1,467 ms
69,224 KB
testcase_30 AC 1,528 ms
69,332 KB
testcase_31 AC 1,548 ms
69,568 KB
testcase_32 AC 1,513 ms
69,344 KB
testcase_33 AC 1,569 ms
69,428 KB
testcase_34 AC 1,565 ms
69,592 KB
testcase_35 AC 1,571 ms
69,452 KB
testcase_36 AC 1,559 ms
69,476 KB
testcase_37 AC 1,499 ms
69,488 KB
testcase_38 AC 1,476 ms
69,356 KB
testcase_39 AC 1,500 ms
69,440 KB
testcase_40 AC 1,448 ms
69,220 KB
testcase_41 AC 1,459 ms
69,324 KB
testcase_42 AC 934 ms
26,336 KB
testcase_43 AC 900 ms
26,240 KB
testcase_44 AC 885 ms
26,124 KB
testcase_45 AC 885 ms
26,240 KB
testcase_46 AC 912 ms
26,200 KB
testcase_47 AC 884 ms
81,396 KB
testcase_48 AC 887 ms
81,516 KB
testcase_49 AC 899 ms
81,612 KB
testcase_50 AC 902 ms
81,476 KB
testcase_51 AC 912 ms
81,400 KB
testcase_52 MLE -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
testcase_58 -- -
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;
 
using ll=long long;
using pp=pair<int,int>;
#define sr string 
#define vc vector
#define db double
#define fi first
#define se second
#define rep(i,n) for(int i=0;i<(int)n;i++)
#define pb push_back
#define all(v) v.begin(),v.end()
#define pque priority_queue
#define bpc(a) __builtin_popcount(a)
int main(){
	int n;cin>>n;
	set<sr>s;
	rep(i,n){
		sr x;cin>>x;
		if(s.count(x))cout<<"Yes";
		else cout<<"No";
		cout<<"\n";
		s.insert(x);
		rep(j,x.size()-1){
			auto xx=x;
			swap(xx[j],xx[j+1]);
			s.insert(xx);
		}
	}
}
	
0