提出 #41264770


ソースコード 拡げる

def manual_abs(a,b):
  return abs(a - b)

N,K = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
sumAbs = sum(list(map(manual_abs, A,B)))
result = sumAbs <= K and (K - sumAbs) % 2 == 0 
print('Yes' if result else 'No')

提出情報

提出日時
問題 024 - Select +/- One(★2)
ユーザ hytaao
言語 Python (3.8.2)
得点 2
コード長 272 Byte
結果 AC
実行時間 22 ms
メモリ 9240 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 2 / 2
結果
AC × 3
AC × 23
セット名 テストケース
Sample 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt
All 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 10_hand_01.txt, 10_hand_02.txt, 10_hand_03.txt, 20_a_equal_b_no.txt, 20_a_equal_b_yes.txt, 50_small_gap_01.txt, 50_small_gap_02.txt, 50_small_gap_03.txt, 50_small_gap_04.txt, 50_small_gap_05.txt, 80_random_small_01.txt, 80_random_small_02.txt, 80_random_small_03.txt, 80_random_small_04.txt, 80_random_small_05.txt, 90_random_large_01.txt, 90_random_large_02.txt, 90_random_large_03.txt, 90_random_large_04.txt, 90_random_large_05.txt
ケース名 結果 実行時間 メモリ
00_sample_01.txt AC 18 ms 9000 KiB
00_sample_02.txt AC 17 ms 8868 KiB
00_sample_03.txt AC 19 ms 9112 KiB
10_hand_01.txt AC 17 ms 8944 KiB
10_hand_02.txt AC 21 ms 9008 KiB
10_hand_03.txt AC 19 ms 8948 KiB
20_a_equal_b_no.txt AC 22 ms 8868 KiB
20_a_equal_b_yes.txt AC 20 ms 8860 KiB
50_small_gap_01.txt AC 20 ms 9100 KiB
50_small_gap_02.txt AC 19 ms 8984 KiB
50_small_gap_03.txt AC 18 ms 9120 KiB
50_small_gap_04.txt AC 21 ms 8976 KiB
50_small_gap_05.txt AC 18 ms 9240 KiB
80_random_small_01.txt AC 22 ms 8984 KiB
80_random_small_02.txt AC 17 ms 9080 KiB
80_random_small_03.txt AC 21 ms 8864 KiB
80_random_small_04.txt AC 18 ms 8864 KiB
80_random_small_05.txt AC 22 ms 8940 KiB
90_random_large_01.txt AC 22 ms 8956 KiB
90_random_large_02.txt AC 18 ms 8948 KiB
90_random_large_03.txt AC 19 ms 9020 KiB
90_random_large_04.txt AC 22 ms 9056 KiB
90_random_large_05.txt AC 19 ms 9212 KiB