結果

問題 No.643 Two Operations No.2
コンテスト
ユーザー takakin
提出日時 2020-05-27 00:19:17
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 21 ms / 2,000 ms
+ 634µs
コード長 189 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 58 ms
コンパイル使用メモリ 14,976 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2026-09-15 08:20:03
合計ジャッジ時間 1,566 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input=lambda: sys.stdin.readline().rstrip()
x,y=map(int,input().split())
if x==y:
  print(0)
elif x==0:
  print(2)
elif y==0:
  print(1)
elif x+y==0:
  print(3)
else:
  print(-1)
0