結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,452 KB
testcase_01 AC 41 ms
53,452 KB
testcase_02 AC 40 ms
53,452 KB
testcase_03 AC 40 ms
53,452 KB
testcase_04 AC 39 ms
53,452 KB
testcase_05 AC 39 ms
53,452 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 223 ms
114,252 KB
testcase_09 WA -
testcase_10 AC 133 ms
108,432 KB
testcase_11 AC 203 ms
114,492 KB
testcase_12 AC 202 ms
114,860 KB
testcase_13 AC 130 ms
108,192 KB
testcase_14 AC 125 ms
108,412 KB
testcase_15 WA -
testcase_16 AC 207 ms
113,292 KB
testcase_17 AC 205 ms
115,072 KB
testcase_18 AC 198 ms
115,044 KB
testcase_19 AC 181 ms
114,800 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 141 ms
111,356 KB
testcase_25 AC 144 ms
112,728 KB
testcase_26 AC 147 ms
112,736 KB
testcase_27 AC 44 ms
61,484 KB
testcase_28 AC 74 ms
80,160 KB
testcase_29 AC 81 ms
99,248 KB
testcase_30 AC 108 ms
98,232 KB
testcase_31 AC 60 ms
78,784 KB
testcase_32 AC 63 ms
80,792 KB
testcase_33 AC 51 ms
68,828 KB
testcase_34 AC 96 ms
106,380 KB
testcase_35 AC 77 ms
92,640 KB
testcase_36 AC 184 ms
106,700 KB
testcase_37 AC 193 ms
107,540 KB
testcase_38 AC 57 ms
75,412 KB
testcase_39 AC 170 ms
103,460 KB
testcase_40 AC 44 ms
61,484 KB
testcase_41 AC 70 ms
87,784 KB
testcase_42 AC 56 ms
75,572 KB
testcase_43 AC 97 ms
104,428 KB
testcase_44 AC 121 ms
106,868 KB
testcase_45 AC 135 ms
103,188 KB
testcase_46 AC 45 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:
    print('Yes')
    exit()

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




if k >= n :
    print('No')
    exit()

if sorted(a) ==   sorted(b):
    print('Yes')
    exit()

print('No')
0