結果

問題 No.2254 Reverse Only
ユーザー tailstails
提出日時 2023-03-25 14:30:29
言語 cLay
(20240104-1)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 6,538 ms
コンパイル使用メモリ 210,960 KB
実行使用メモリ 11,944 KB
最終ジャッジ日時 2023-10-19 01:15:37
合計ジャッジ時間 9,424 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,860 KB
testcase_01 AC 2 ms
7,860 KB
testcase_02 AC 3 ms
7,860 KB
testcase_03 AC 2 ms
7,860 KB
testcase_04 AC 3 ms
7,860 KB
testcase_05 AC 2 ms
7,860 KB
testcase_06 AC 3 ms
7,860 KB
testcase_07 AC 2 ms
7,860 KB
testcase_08 AC 21 ms
11,944 KB
testcase_09 AC 17 ms
11,944 KB
testcase_10 AC 14 ms
11,944 KB
testcase_11 AC 21 ms
11,944 KB
testcase_12 AC 20 ms
11,944 KB
testcase_13 AC 16 ms
11,944 KB
testcase_14 AC 15 ms
11,944 KB
testcase_15 AC 15 ms
11,944 KB
testcase_16 AC 17 ms
11,944 KB
testcase_17 AC 17 ms
11,944 KB
testcase_18 AC 21 ms
11,944 KB
testcase_19 AC 15 ms
11,944 KB
testcase_20 AC 15 ms
11,944 KB
testcase_21 AC 16 ms
11,944 KB
testcase_22 AC 12 ms
11,700 KB
testcase_23 AC 16 ms
11,944 KB
testcase_24 AC 14 ms
11,944 KB
testcase_25 AC 16 ms
11,944 KB
testcase_26 AC 16 ms
11,944 KB
testcase_27 AC 3 ms
7,956 KB
testcase_28 AC 6 ms
9,004 KB
testcase_29 AC 9 ms
10,260 KB
testcase_30 AC 10 ms
10,064 KB
testcase_31 AC 6 ms
9,084 KB
testcase_32 AC 6 ms
9,256 KB
testcase_33 AC 4 ms
8,468 KB
testcase_34 AC 11 ms
10,676 KB
testcase_35 AC 7 ms
9,952 KB
testcase_36 AC 18 ms
11,460 KB
testcase_37 AC 18 ms
11,576 KB
testcase_38 AC 5 ms
8,808 KB
testcase_39 AC 17 ms
11,272 KB
testcase_40 AC 3 ms
7,956 KB
testcase_41 AC 8 ms
9,740 KB
testcase_42 AC 6 ms
8,896 KB
testcase_43 AC 11 ms
10,816 KB
testcase_44 AC 15 ms
11,748 KB
testcase_45 AC 13 ms
10,628 KB
testcase_46 AC 3 ms
7,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@k,@a[n],@b[n],f;
if(k<n-1){
	sortA(n,a);
	sortA(n,b);
}
Mint m=(ll)time(0),o=1-m**n,c,d,e;
rep(i,n){
	c=c*m+a[i];
	d=d*m+b[i];
	e=e*m+b[n+~i];
}
f=c==d;
if(n==k){
	f|=c==e;
}
if(k==n-1){
	rep(i,n){
		f|=c==d|c==e;
		c=c*m+o*a[i];
	}
}
wt(f?"Yes":"No");
0