結果
| 問題 |
No.1893 Cycle
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2022-04-08 21:21:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 2,000 ms |
| コード長 | 657 bytes |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 81,536 KB |
| 実行使用メモリ | 53,888 KB |
| 最終ジャッジ日時 | 2024-11-28 11:57:23 |
| 合計ジャッジ時間 | 2,138 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import sys
import math
from collections import deque,Counter
from sys import stdin
#sys.setrecursionlimit(10**7)
int1=lambda x: int(x)-1
stinput=lambda :stdin.readline()[:-1]
ii=lambda :int(stinput())
mi=lambda :map(int, stdin.readline().split())
li=lambda :list(mi())
mi1=lambda :map(int1, stdin.readline().split())
li1=lambda :list(mi1())
mis=lambda :map(str, stdin.readline().split())
lis=lambda :list(mis())
from collections import defaultdict
#d=defaultdict(int)
#d=defaultdict(lambda:1)
mod=10**9+7
Mod=998244353
INF=10**18
ans=0
x,y=mi()
def calc(x):
x=abs(x)
return min(x,12-x)
for i in range(12):
if calc(i-x)==calc(i-y)==4:
print(i)
とりゐ