結果

問題 No.643 Two Operations No.2
ユーザー kurenai3110
提出日時 2018-02-02 21:26:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 715 ms
コンパイル使用メモリ 58,580 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-31 07:06:54
合計ジャッジ時間 1,232 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;

int solve(int X,int Y) {
	if (X == Y)return 0;
	if (X == 0)return 2;
	else if (Y == 0)return 1;
	return -1;
}

int main()
{
	int X, Y; cin >> X >> Y;
	cout << solve(X, Y) << endl;
    return 0;
}

0