結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,268 KB
testcase_01 AC 38 ms
53,268 KB
testcase_02 AC 37 ms
53,268 KB
testcase_03 AC 37 ms
53,268 KB
testcase_04 AC 37 ms
53,268 KB
testcase_05 AC 37 ms
53,268 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 199 ms
114,228 KB
testcase_09 WA -
testcase_10 AC 119 ms
108,212 KB
testcase_11 AC 194 ms
114,256 KB
testcase_12 AC 191 ms
114,628 KB
testcase_13 AC 122 ms
107,968 KB
testcase_14 AC 118 ms
108,180 KB
testcase_15 WA -
testcase_16 AC 196 ms
113,072 KB
testcase_17 AC 196 ms
114,840 KB
testcase_18 AC 191 ms
114,820 KB
testcase_19 AC 175 ms
114,576 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 137 ms
111,124 KB
testcase_25 AC 141 ms
112,512 KB
testcase_26 AC 140 ms
112,512 KB
testcase_27 AC 41 ms
61,284 KB
testcase_28 AC 71 ms
79,960 KB
testcase_29 AC 77 ms
99,048 KB
testcase_30 AC 104 ms
98,004 KB
testcase_31 AC 57 ms
78,584 KB
testcase_32 AC 61 ms
80,592 KB
testcase_33 AC 49 ms
68,628 KB
testcase_34 AC 91 ms
106,152 KB
testcase_35 AC 69 ms
92,440 KB
testcase_36 AC 175 ms
106,476 KB
testcase_37 AC 183 ms
107,316 KB
testcase_38 AC 55 ms
75,212 KB
testcase_39 AC 167 ms
103,232 KB
testcase_40 AC 44 ms
61,284 KB
testcase_41 AC 68 ms
87,584 KB
testcase_42 AC 54 ms
75,372 KB
testcase_43 AC 92 ms
104,200 KB
testcase_44 AC 115 ms
106,640 KB
testcase_45 AC 130 ms
102,960 KB
testcase_46 AC 41 ms
59,236 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] or a ==  b:
    print('Yes')
    exit()




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

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

print('No')
0