結果

問題 No.1893 Cycle
ユーザー chineristACchineristAC
提出日時 2022-04-08 22:56:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 82,324 KB
実行使用メモリ 55,936 KB
最終ジャッジ日時 2024-05-06 08:37:00
合計ジャッジ時間 2,506 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
55,552 KB
testcase_01 AC 51 ms
55,808 KB
testcase_02 AC 51 ms
55,424 KB
testcase_03 AC 52 ms
55,680 KB
testcase_04 AC 51 ms
55,936 KB
testcase_05 AC 52 ms
55,552 KB
testcase_06 AC 45 ms
55,552 KB
testcase_07 AC 44 ms
55,424 KB
testcase_08 AC 49 ms
55,808 KB
testcase_09 AC 47 ms
55,552 KB
testcase_10 AC 45 ms
55,296 KB
testcase_11 AC 44 ms
55,808 KB
testcase_12 AC 48 ms
55,296 KB
testcase_13 AC 44 ms
55,424 KB
testcase_14 AC 45 ms
55,808 KB
testcase_15 AC 44 ms
55,552 KB
testcase_16 AC 45 ms
55,808 KB
testcase_17 AC 45 ms
55,552 KB
testcase_18 AC 51 ms
55,808 KB
testcase_19 AC 51 ms
55,552 KB
testcase_20 AC 51 ms
55,552 KB
testcase_21 AC 48 ms
55,552 KB
testcase_22 AC 45 ms
55,552 KB
testcase_23 AC 44 ms
55,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import log,gcd

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

X,Y = mi()

for Z in range(12):
    tmp = [X,Y,Z]
    tmp.sort()
    if tmp[1]-tmp[0]==4 and tmp[2]-tmp[1]==4:
        exit(print(Z))
0