結果

問題 No.1893 Cycle
ユーザー siganaisiganai
提出日時 2022-04-09 16:00:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 2,778 ms
コンパイル使用メモリ 86,412 KB
実行使用メモリ 78,700 KB
最終ジャッジ日時 2023-08-19 19:56:26
合計ジャッジ時間 6,176 ms
ジャッジサーバーID
(参考情報)
judge15 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
78,572 KB
testcase_01 AC 140 ms
78,480 KB
testcase_02 AC 143 ms
78,596 KB
testcase_03 AC 142 ms
78,492 KB
testcase_04 AC 145 ms
78,676 KB
testcase_05 AC 141 ms
78,636 KB
testcase_06 AC 142 ms
78,596 KB
testcase_07 AC 142 ms
78,596 KB
testcase_08 AC 142 ms
78,520 KB
testcase_09 AC 140 ms
78,596 KB
testcase_10 AC 144 ms
78,508 KB
testcase_11 AC 142 ms
78,684 KB
testcase_12 AC 144 ms
78,364 KB
testcase_13 AC 143 ms
78,384 KB
testcase_14 AC 144 ms
78,616 KB
testcase_15 AC 141 ms
78,652 KB
testcase_16 AC 139 ms
78,496 KB
testcase_17 AC 139 ms
78,588 KB
testcase_18 AC 142 ms
78,700 KB
testcase_19 AC 144 ms
78,500 KB
testcase_20 AC 142 ms
78,612 KB
testcase_21 AC 141 ms
78,492 KB
testcase_22 AC 141 ms
78,400 KB
testcase_23 AC 144 ms
78,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env PyPy3

from collections import Counter, defaultdict, deque
import itertools
import re
import math
from functools import reduce
import operator
import bisect
import heapq
import functools
mod=10**9+7

import sys
input=sys.stdin.readline

x,y=map(int,input().split())
if abs(x-y) == 4:
    print((max(x,y)+4) % 12)
else:
    print((x+y) // 2)

0