提出 #72588614


ソースコード 拡げる

"""
<方針>
- 大小関係で内側にあるかどうかを判定すれば良い.
"""
# 入力
P, Q = map(int, input().split())
X, Y = map(int, input().split())

# 分岐と出力
if(
  (P <= X <= P+100-1) and
  (Q <= Y <= Q+100-1)):
    print("Yes")
else:
  print("No")

提出情報

提出日時
問題 A - Black Square
ユーザ mattsunkun
言語 Python (PyPy 3.11-v7.3.20)
得点 100
コード長 287 Byte
結果 AC
実行時間 55 ms
メモリ 80116 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 33
セット名 テストケース
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, hand_11.txt, hand_12.txt, hand_13.txt, hand_14.txt, hand_15.txt, hand_16.txt, hand_17.txt, hand_18.txt, hand_19.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 53 ms 80072 KiB
example_01.txt AC 52 ms 79636 KiB
example_02.txt AC 53 ms 79768 KiB
hand_00.txt AC 52 ms 79820 KiB
hand_01.txt AC 52 ms 79768 KiB
hand_02.txt AC 51 ms 79756 KiB
hand_03.txt AC 54 ms 79912 KiB
hand_04.txt AC 54 ms 80020 KiB
hand_05.txt AC 54 ms 79636 KiB
hand_06.txt AC 53 ms 79936 KiB
hand_07.txt AC 53 ms 80072 KiB
hand_08.txt AC 53 ms 80024 KiB
hand_09.txt AC 53 ms 79636 KiB
hand_10.txt AC 55 ms 79728 KiB
hand_11.txt AC 54 ms 79760 KiB
hand_12.txt AC 54 ms 79912 KiB
hand_13.txt AC 54 ms 79844 KiB
hand_14.txt AC 53 ms 79728 KiB
hand_15.txt AC 53 ms 80072 KiB
hand_16.txt AC 53 ms 80116 KiB
hand_17.txt AC 52 ms 79808 KiB
hand_18.txt AC 52 ms 80116 KiB
hand_19.txt AC 53 ms 79768 KiB
random_00.txt AC 54 ms 79684 KiB
random_01.txt AC 53 ms 80116 KiB
random_02.txt AC 52 ms 80116 KiB
random_03.txt AC 52 ms 79768 KiB
random_04.txt AC 54 ms 79912 KiB
random_05.txt AC 54 ms 80020 KiB
random_06.txt AC 53 ms 79756 KiB
random_07.txt AC 54 ms 80012 KiB
random_08.txt AC 52 ms 79796 KiB
random_09.txt AC 53 ms 79808 KiB