結果
問題 | No.643 Two Operations No.2 |
ユーザー |
|
提出日時 | 2019-08-19 21:31:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 1,814 ms |
コンパイル使用メモリ | 191,628 KB |
最終ジャッジ日時 | 2025-01-07 14:17:54 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int x,y; cin>>x>>y; if (x==y) cout<<0; else if (y==0) cout<<1; else if (x==0) cout<<2; else if (x==-y) cout<<3; else cout<<-1; cout<<endl; return 0; }