結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 800 ms
31,540 KB
testcase_03 AC 1,024 ms
46,884 KB
testcase_04 AC 836 ms
30,140 KB
testcase_05 AC 526 ms
14,676 KB
testcase_06 AC 897 ms
31,968 KB
testcase_07 AC 829 ms
92,828 KB
testcase_08 AC 199 ms
4,348 KB
testcase_09 AC 910 ms
55,192 KB
testcase_10 AC 335 ms
10,924 KB
testcase_11 AC 316 ms
21,048 KB
testcase_12 AC 671 ms
30,128 KB
testcase_13 AC 1,186 ms
62,048 KB
testcase_14 AC 687 ms
22,444 KB
testcase_15 AC 1,017 ms
33,484 KB
testcase_16 AC 1,445 ms
59,488 KB
testcase_17 AC 542 ms
54,448 KB
testcase_18 AC 972 ms
72,940 KB
testcase_19 AC 462 ms
18,364 KB
testcase_20 AC 1,292 ms
66,216 KB
testcase_21 AC 351 ms
5,048 KB
testcase_22 AC 1,614 ms
69,404 KB
testcase_23 AC 1,592 ms
69,300 KB
testcase_24 AC 1,627 ms
69,268 KB
testcase_25 AC 1,612 ms
69,292 KB
testcase_26 AC 1,645 ms
69,340 KB
testcase_27 AC 1,562 ms
69,312 KB
testcase_28 AC 1,581 ms
69,228 KB
testcase_29 AC 1,587 ms
69,252 KB
testcase_30 AC 1,560 ms
69,388 KB
testcase_31 AC 1,586 ms
69,324 KB
testcase_32 AC 1,571 ms
69,376 KB
testcase_33 AC 1,617 ms
69,328 KB
testcase_34 AC 1,591 ms
69,512 KB
testcase_35 AC 1,566 ms
69,276 KB
testcase_36 AC 1,604 ms
69,404 KB
testcase_37 AC 1,623 ms
69,504 KB
testcase_38 AC 1,562 ms
69,316 KB
testcase_39 AC 1,622 ms
69,460 KB
testcase_40 AC 1,613 ms
69,228 KB
testcase_41 AC 1,598 ms
69,316 KB
testcase_42 AC 982 ms
26,208 KB
testcase_43 AC 1,001 ms
26,272 KB
testcase_44 AC 982 ms
26,216 KB
testcase_45 AC 996 ms
26,288 KB
testcase_46 AC 993 ms
26,228 KB
testcase_47 AC 984 ms
81,556 KB
testcase_48 AC 981 ms
81,480 KB
testcase_49 AC 986 ms
81,400 KB
testcase_50 AC 943 ms
81,388 KB
testcase_51 AC 966 ms
81,416 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){
			swap(x[j],x[j+1]);
			s.insert(x);
			swap(x[j],x[j+1]);
		}
	}
}
	
0