結果
問題 | No.683 Two Operations No.3 |
ユーザー | kamome |
提出日時 | 2019-07-04 19:45:08 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
RE
|
実行時間 | - |
コード長 | 399 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 11,888 KB |
実行使用メモリ | 10,456 KB |
最終ジャッジ日時 | 2023-10-19 10:24:17 |
合計ジャッジ時間 | 1,597 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 30 ms
10,172 KB |
testcase_01 | AC | 30 ms
10,172 KB |
testcase_02 | AC | 32 ms
10,172 KB |
testcase_03 | AC | 31 ms
10,172 KB |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | AC | 29 ms
10,172 KB |
testcase_08 | RE | - |
testcase_09 | AC | 29 ms
10,224 KB |
testcase_10 | AC | 30 ms
10,172 KB |
testcase_11 | AC | 30 ms
10,172 KB |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | AC | 30 ms
10,172 KB |
testcase_15 | RE | - |
ソースコード
#!/usr/bin/python3 def op1(x,y): if x==0 and y==0: print("Yes") exit() if x%2==0 and y>0: x=x//2 y=y-1 op2(x,y) op1(x,y) def op2(x,y): if x==0 and y==0: print("Yes") exit() if x>0 and y%2==0: x=x-1 y=y//2 op1(x,y) op2(x,y) X,Y=map(int,input().split()) op1(X,Y) op2(X,Y) print("No")