結果

問題 No.643 Two Operations No.2
ユーザー Pulmn
提出日時 2018-01-27 22:06:14
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 152 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 54,592 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-29 07:07:20
合計ジャッジ時間 1,109 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int x,y;

int main(){
	cin>>x>>y;
	int t=-1;
	if(!x||x==-y) t=2;
	if(!y) t=1;
	if(x==y) t=0;
	cout<<t<<endl;
}
0