結果

問題 No.2789 hako111223’s Master Thesis
ユーザー aldyasaldyas
提出日時 2024-06-21 21:26:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 1,698 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 56,332 KB
最終ジャッジ日時 2024-06-21 21:26:55
合計ジャッジ時間 1,564 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
56,128 KB
testcase_01 AC 40 ms
54,996 KB
testcase_02 AC 39 ms
54,876 KB
testcase_03 AC 38 ms
54,532 KB
testcase_04 AC 39 ms
56,224 KB
testcase_05 AC 38 ms
55,372 KB
testcase_06 AC 38 ms
55,580 KB
testcase_07 AC 40 ms
54,756 KB
testcase_08 AC 38 ms
55,452 KB
testcase_09 AC 39 ms
55,660 KB
testcase_10 AC 43 ms
55,448 KB
testcase_11 AC 38 ms
55,232 KB
testcase_12 AC 39 ms
54,388 KB
testcase_13 AC 38 ms
54,648 KB
testcase_14 AC 42 ms
56,332 KB
testcase_15 AC 37 ms
55,320 KB
testcase_16 AC 38 ms
55,324 KB
testcase_17 AC 41 ms
56,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

from collections import defaultdict, deque, Counter
from heapq import heapify, heappush, heappop, merge
from bisect import bisect_right, bisect_left 
left_binser = lower_bound = bisect_left ; right_binser = upper_bound = bisect_right
from itertools import permutations, combinations, accumulate

# from math import lcm,gcd
# from math import comb, perm
# from functools import lru_cache
# from types import GeneratorType

MOD = 10**9 + 7
_MOD = 998244353

YES = "YES"
NO = "NO"
ALICE = "Alice"
BOB = "Bob"

def FLOOR_DIV(a, b) :
    return a // b
def CEIL_DIV(a, b) :
    return (a // b) + (not(not(a % b)))

def get() :
    return map(int, sys.stdin.readline().split())
def getone() :
    return int(sys.stdin.readline().strip())
def getstr() :
    return sys.stdin.readline().split()
def getonestr() :
    return sys.stdin.readline().strip()
def getarr() :
    return list(map(int, sys.stdin.readline().split()))

def _3d_ARRAY_SPAWN(i, j, k) :
    return [[[0 for _k in range(k)] for _j in range(j)] for _i in range(i)]
def _2d_ARRAY_SPAWN(i, j) :
    return [[0 for _j in range(j)] for _i in range(i)]
   
"""
"never doubt that u can't do this, cause it's an insult to ur determination"
by @deepakgoswami0552 10/03/2024
""" 

                                    
def solve() :
    ...
    # Solution here!
    a,b,c,d = get()
    diff = (31 - a) + b
    assert c > d
    
    if diff < d :
        return 3
    if diff < c :
        return 2
    return 1

""""""
testcase = ""
# testcase = "multiple" # Multiple tc


if testcase == "multiple" :

    for i in range(int(input())) : 
        print(solve())
        # solve()
        ...
else :
    print(solve())
    # solve()
    ...
0