結果

問題 No.2254 Reverse Only
ユーザー tailstails
提出日時 2023-03-24 22:23:36
言語 cLay
(20240104-1)
結果
RE  
実行時間 -
コード長 235 bytes
コンパイル時間 5,419 ms
コンパイル使用メモリ 209,436 KB
実行使用メモリ 11,828 KB
最終ジャッジ日時 2023-10-18 21:14:55
合計ジャッジ時間 7,373 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 2 ms
7,740 KB
testcase_02 AC 2 ms
7,740 KB
testcase_03 AC 2 ms
7,740 KB
testcase_04 AC 2 ms
7,740 KB
testcase_05 AC 2 ms
7,740 KB
testcase_06 AC 2 ms
7,740 KB
testcase_07 AC 2 ms
7,740 KB
testcase_08 AC 18 ms
11,824 KB
testcase_09 RE -
testcase_10 AC 10 ms
11,824 KB
testcase_11 WA -
testcase_12 AC 13 ms
11,828 KB
testcase_13 AC 13 ms
11,824 KB
testcase_14 AC 13 ms
11,828 KB
testcase_15 AC 13 ms
11,824 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 18 ms
11,824 KB
testcase_19 RE -
testcase_20 WA -
testcase_21 RE -
testcase_22 WA -
testcase_23 WA -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 AC 2 ms
7,840 KB
testcase_28 AC 6 ms
8,884 KB
testcase_29 AC 8 ms
10,144 KB
testcase_30 AC 9 ms
9,944 KB
testcase_31 AC 5 ms
8,968 KB
testcase_32 AC 6 ms
9,140 KB
testcase_33 AC 4 ms
8,352 KB
testcase_34 AC 8 ms
10,560 KB
testcase_35 AC 7 ms
9,836 KB
testcase_36 AC 15 ms
11,340 KB
testcase_37 AC 16 ms
11,456 KB
testcase_38 AC 4 ms
8,688 KB
testcase_39 AC 14 ms
11,152 KB
testcase_40 AC 2 ms
7,836 KB
testcase_41 AC 6 ms
9,624 KB
testcase_42 AC 5 ms
8,780 KB
testcase_43 AC 9 ms
10,696 KB
testcase_44 AC 12 ms
11,628 KB
testcase_45 AC 11 ms
10,508 KB
testcase_46 AC 2 ms
7,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@k,@a[n],@b[n];
if(n==k){
	rep(i,n){
		if(a[i]!=b[n+~i]){
			goto hoge;
		}
	}
	goto yes;
}else if(1<k<n){
if(k&1)exit(1);
	sortA(n,a);
	sortA(n,b);
}
hoge:;
rep(i,n){
	if(a[i]!=b[i]){
		wt("No");
		exit(0);
	}
}
yes:;
wt("Yes");
0