提出 #19792363


ソースコード 拡げる

import sys
input = sys.stdin.readline
import numpy as np

#    int(input())
#    input().split().strip()
#    map(int, input().strip().split())

n, s, d = map(int, input().split())

ju = [input().split() for _ in range(n)]
ju = np.array(ju, dtype = np.int64)

ch = ju - np.array([s, d])
che1 = ch[:,0] < 0
che2 = ch[:,1] > 0
chec = che1 * che2
checker = len(np.nonzero(chec)[0])
if checker > 0:
    print("Yes")
else:
    print("No")

提出情報

提出日時
問題 B - Magic 3
ユーザ rsypoz
言語 Python (3.8.2)
得点 200
コード長 456 Byte
結果 AC
実行時間 118 ms
メモリ 27348 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 24
セット名 テストケース
Sample 01_sample.txt, 02_sample.txt, 03_sample.txt
All 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_small.txt, 05_small.txt, 06_small.txt, 07_small.txt, 08_small.txt, 09_small.txt, 10_small.txt, 11_small.txt, 12_small.txt, 13_small.txt, 14_small.txt, 15_small.txt, 16_small.txt, 17_small.txt, 18_small.txt, 19_large.txt, 20_large.txt, 21_large.txt, 22_large.txt, 23_large.txt, 24_large.txt
ケース名 結果 実行時間 メモリ
01_sample.txt AC 118 ms 26744 KiB
02_sample.txt AC 108 ms 26908 KiB
03_sample.txt AC 110 ms 27080 KiB
04_small.txt AC 111 ms 27260 KiB
05_small.txt AC 107 ms 26908 KiB
06_small.txt AC 111 ms 27060 KiB
07_small.txt AC 111 ms 27076 KiB
08_small.txt AC 108 ms 27344 KiB
09_small.txt AC 110 ms 27336 KiB
10_small.txt AC 112 ms 27032 KiB
11_small.txt AC 111 ms 26964 KiB
12_small.txt AC 112 ms 26960 KiB
13_small.txt AC 110 ms 27348 KiB
14_small.txt AC 111 ms 27264 KiB
15_small.txt AC 110 ms 27072 KiB
16_small.txt AC 113 ms 27080 KiB
17_small.txt AC 110 ms 26672 KiB
18_small.txt AC 111 ms 26660 KiB
19_large.txt AC 111 ms 27060 KiB
20_large.txt AC 111 ms 27084 KiB
21_large.txt AC 112 ms 26640 KiB
22_large.txt AC 109 ms 26972 KiB
23_large.txt AC 111 ms 26980 KiB
24_large.txt AC 112 ms 27108 KiB