結果

問題 No.1893 Cycle
ユーザー 河野竜也河野竜也
提出日時 2022-06-22 14:49:14
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-15 19:38:49
合計ジャッジ時間 2,058 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y=map(int,input().split())
c=abs(x-y)
minx=min(x,y)
maxx=max(x,y)
if c==4:
  if minx>=4:
    print(minx-4)
  else:
    print(maxx+4)
else:
  print(minx+4)
0