結果

問題 No.2254 Reverse Only
ユーザー flygonflygon
提出日時 2023-03-24 23:25:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 491 ms
コンパイル使用メモリ 81,604 KB
実行使用メモリ 115,316 KB
最終ジャッジ日時 2023-10-18 21:37:22
合計ジャッジ時間 7,853 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,452 KB
testcase_01 AC 40 ms
53,452 KB
testcase_02 AC 40 ms
53,452 KB
testcase_03 AC 40 ms
53,452 KB
testcase_04 AC 40 ms
53,452 KB
testcase_05 AC 40 ms
53,452 KB
testcase_06 AC 40 ms
53,452 KB
testcase_07 AC 40 ms
53,452 KB
testcase_08 AC 222 ms
114,468 KB
testcase_09 WA -
testcase_10 AC 130 ms
108,432 KB
testcase_11 AC 205 ms
114,476 KB
testcase_12 AC 200 ms
114,860 KB
testcase_13 AC 130 ms
108,200 KB
testcase_14 AC 126 ms
108,420 KB
testcase_15 AC 131 ms
109,980 KB
testcase_16 AC 207 ms
113,304 KB
testcase_17 AC 207 ms
115,076 KB
testcase_18 AC 200 ms
115,052 KB
testcase_19 AC 184 ms
114,792 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 142 ms
111,360 KB
testcase_25 AC 148 ms
112,728 KB
testcase_26 AC 148 ms
112,728 KB
testcase_27 AC 45 ms
61,484 KB
testcase_28 AC 75 ms
80,160 KB
testcase_29 AC 85 ms
99,248 KB
testcase_30 AC 112 ms
98,232 KB
testcase_31 AC 59 ms
78,784 KB
testcase_32 AC 61 ms
80,792 KB
testcase_33 AC 50 ms
68,828 KB
testcase_34 AC 96 ms
106,644 KB
testcase_35 AC 75 ms
92,640 KB
testcase_36 AC 183 ms
106,676 KB
testcase_37 AC 183 ms
107,616 KB
testcase_38 AC 55 ms
75,412 KB
testcase_39 AC 173 ms
103,460 KB
testcase_40 AC 44 ms
61,484 KB
testcase_41 AC 71 ms
87,784 KB
testcase_42 AC 56 ms
75,572 KB
testcase_43 AC 96 ms
104,428 KB
testcase_44 AC 121 ms
106,876 KB
testcase_45 AC 135 ms
103,452 KB
testcase_46 AC 43 ms
59,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())

a = list(map(int,input().split()))
b = list(map(int,input().split()))

if    a== b or (k < n and sorted(a) == sorted(b)) or (k == n and a == b[::-1]):
    print('Yes')
    exit()


print('No')
0