Submission #10292656
Source Code Expand
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #define ll long long #define vi vector<int> #define pi pair<int, int> #define pb push_back #define ppb pop_back #pragma comment(linker, "/stack:200000000") #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") using namespace std; using namespace __gnu_pbds; typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> indexed_set; const int N = 2e5 + 667; vector<int> a; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); int a, b; cin >> a >> b; int c = b - a; if(b >= 0 && a <=0){ cout << "Zero"; return 0; } if(abs(c+1) % 2 == 0){ cout << "Positive"; } else if(a > 0 && b > 0){ cout << "Positive"; } else{ cout << "Negative"; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Range Product |
User | vjudge5 |
Language | Bash (GNU bash v4.3.11) |
Score | 0 |
Code Size | 898 Byte |
Status | RE |
Exec Time | 4 ms |
Memory | 592 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||
---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | 0 / 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 | RE | 4 ms | 588 KB |
0_01.txt | RE | 4 ms | 584 KB |
0_02.txt | RE | 4 ms | 592 KB |
1_00.txt | RE | 4 ms | 584 KB |
1_01.txt | RE | 4 ms | 580 KB |
1_02.txt | RE | 4 ms | 584 KB |
1_03.txt | RE | 4 ms | 580 KB |
2_00.txt | RE | 4 ms | 580 KB |
2_01.txt | RE | 4 ms | 580 KB |
2_02.txt | RE | 4 ms | 592 KB |
2_03.txt | RE | 4 ms | 580 KB |