結果
| 問題 |
No.1047 Zero (Novice)
|
| コンテスト | |
| ユーザー |
le_panda_noir
|
| 提出日時 | 2020-05-30 21:03:06 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 378 bytes |
| コンパイル時間 | 746 ms |
| コンパイル使用メモリ | 65,148 KB |
| 最終ジャッジ日時 | 2025-01-10 19:42:23 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include <iostream>
using namespace std;
void ins() {}
template<class T,class... Rest>void ins(T& v,Rest&... rest){cin>>v;ins(rest...);}
int main() {
int A, B;
ins(A, B);
if (A > 0 && B > 0) {
cout << "-1\n";
return 0;
}
if (B == 0) {
cout << "1\n";
return 0;
}
if (A == -1) {
cout << "2\n";
return 0;
}
cout << "-1\n";
return 0;
}
le_panda_noir