結果

問題 No.1893 Cycle
ユーザー chineristACchineristAC
提出日時 2022-04-08 22:56:12
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 490 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 74,848 KB
最終ジャッジ日時 2023-08-19 01:27:32
合計ジャッジ時間 3,728 ms
ジャッジサーバーID
(参考情報)
judge15 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
74,748 KB
testcase_01 AC 93 ms
74,344 KB
testcase_02 AC 96 ms
74,184 KB
testcase_03 AC 101 ms
74,436 KB
testcase_04 AC 96 ms
74,340 KB
testcase_05 AC 94 ms
74,400 KB
testcase_06 AC 94 ms
74,616 KB
testcase_07 AC 93 ms
74,616 KB
testcase_08 AC 97 ms
74,224 KB
testcase_09 AC 94 ms
74,656 KB
testcase_10 AC 94 ms
74,696 KB
testcase_11 AC 92 ms
74,228 KB
testcase_12 AC 99 ms
74,672 KB
testcase_13 AC 94 ms
74,580 KB
testcase_14 AC 98 ms
74,652 KB
testcase_15 AC 92 ms
74,384 KB
testcase_16 AC 94 ms
74,524 KB
testcase_17 AC 97 ms
74,616 KB
testcase_18 AC 94 ms
74,848 KB
testcase_19 AC 93 ms
74,648 KB
testcase_20 AC 94 ms
74,712 KB
testcase_21 AC 99 ms
74,580 KB
testcase_22 AC 96 ms
74,680 KB
testcase_23 AC 95 ms
74,752 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