結果
問題 | No.683 Two Operations No.3 |
ユーザー | mitosoup |
提出日時 | 2018-05-11 23:03:36 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 376 bytes |
コンパイル時間 | 221 ms |
コンパイル使用メモリ | 10,524 KB |
実行使用メモリ | 8,548 KB |
最終ジャッジ日時 | 2023-09-10 17:47:30 |
合計ジャッジ時間 | 1,283 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | AC | 16 ms
7,800 KB |
testcase_02 | WA | - |
testcase_03 | AC | 15 ms
7,772 KB |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
ソースコード
a,b = map(int,input().split()) flag = 1 def tansaku(x,y): if x == a and y == b: return 0 elif x > a or y> b: flag = 0 return 0 else: x1 = x * 2 y1 = y + 1 x2 = x + 1 y2 = y * 2 return tansaku(x1,y1), tansaku(x2,y2) tansaku(0,0) if flag ==1: print('Yes') else: print('No')