結果

問題 No.683 Two Operations No.3
ユーザー regretsfoxregretsfox
提出日時 2018-05-11 22:47:24
言語 C
(gcc 12.3.0)
結果
MLE  
実行時間 -
コード長 325 bytes
コンパイル時間 1,730 ms
コンパイル使用メモリ 28,448 KB
実行使用メモリ 812,736 KB
最終ジャッジ日時 2023-09-10 17:41:25
合計ジャッジ時間 2,578 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,376 KB
testcase_01 AC 1 ms
4,384 KB
testcase_02 AC 0 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 0 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 MLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include<stdlib.h>

void search(long long int a,long long int b){
	if(a==0&&b==0){
		printf("Yes\n");
		exit(0);
	}
	if(a%2==0&&b>0){
		search(a/2,b-1);
	}
	if(b%2==0&&a>0){
		search(a-1,b/2);
	}
}

int main(void){
	long long int a,b;
	scanf("%lld %lld",&a,&b);
	search(a,b);
	printf("No\n");

	return 0;
}
0