Submission #46054808
Source Code Expand
#include <bits/stdc++.h>
void solve(std::istream& is, std::ostream& os) {
using Num = long long int;
Num a {0};
Num b {0};
is >> a >> b;
if (a > 0) {
os << "Positive\n";
} else if (b < 0) {
if (((b - a) % 2) == 0) {
os << "Negative\n";
} else {
os << "Positive\n";
}
} else {
os << "Zero\n";
}
return;
}
int main(void) {
solve(std::cin, std::cout);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Range Product |
| User | zettsut |
| Language | C++ 20 (gcc 12.2) |
| Score | 200 |
| Code Size | 502 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3612 KiB |
Judge Result
| Set Name | Sample | Subtask1 | All | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | 100 / 100 | ||||||
| Status |
|
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 0_00.txt, 0_01.txt, 0_02.txt |
| Subtask1 | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt |
| All | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 2_00.txt, 2_01.txt, 2_02.txt, 2_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 0_00.txt | AC | 1 ms | 3500 KiB |
| 0_01.txt | AC | 1 ms | 3428 KiB |
| 0_02.txt | AC | 1 ms | 3428 KiB |
| 1_00.txt | AC | 1 ms | 3612 KiB |
| 1_01.txt | AC | 1 ms | 3424 KiB |
| 1_02.txt | AC | 1 ms | 3464 KiB |
| 1_03.txt | AC | 1 ms | 3492 KiB |
| 2_00.txt | AC | 1 ms | 3492 KiB |
| 2_01.txt | AC | 1 ms | 3464 KiB |
| 2_02.txt | AC | 1 ms | 3448 KiB |
| 2_03.txt | AC | 1 ms | 3576 KiB |