結果
| 問題 | No.643 Two Operations No.2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-10 00:00:17 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 364 ms |
| コンパイル使用メモリ | 77,604 KB |
| 実行使用メモリ | 7,968 KB |
| 最終ジャッジ日時 | 2026-06-26 23:26:52 |
| 合計ジャッジ時間 | 1,304 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 2 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int a,b;cin>>a>>b;
if(a==b){
cout << 0 << endl;
}else if(b == 0){
cout << 1 << endl;
}else if(a == 0){
cout << 2 << endl;
}else{
cout << -1 << endl;
}
}