Submission #3768516
Source Code Expand
// You may see me struggle,but you will never see me quit!
#include <bits/stdc++.h>
using namespace std;
#define FIO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define mod 1000000007
#define eps 1e-9
#define setbits __builtin_popcount
#define gcd __gcd
#define rep(i,a,b) for(int i=a;i<=b;i++)
#define repr(i,b,a) for(int i=b;i>=a;i--)
#define forn(i,n) for(int i=0;i<n;i++)
#define all(a) a.begin(), a.end()
#define pb push_back
#define endl "\n"
#define ff first
#define ss second
#define asort(c) sort(all(c))
#define lbpos(x,v) (int)(lower_bound(all(v),x)-v.begin())//=v.size()==>No LB
#define ubpos(x,v) (int)(upper_bound(all(v),x)-v.begin())//=v.size()==>No UB
#define PI 3.14159265358979323846
#define int long long
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef long double ld;
#define debug(...) ZZ(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1> void ZZ(const char* name, Arg1&& arg1){std::cerr << name << " = " << arg1 << endl;}
template <typename Arg1, typename... Args>void ZZ(const char* names, Arg1&& arg1, Args&&... args)
{
const char* comma = strchr(names + 1, ',');
std::cerr.write(names, comma - names) << " = " << arg1;
ZZ(comma, args...);
}
clock_t time_p=clock();
void timer()
{
time_p=clock()-time_p;
cerr<<"Execution Time: "<<(double)(time_p)/CLOCKS_PER_SEC<<"\n";
}
int32_t main()
{
FIO;
int a,b;
cin>>a>>b;
if(a>=b)
swap(a,b);
if(a<=0 and b>=0)
cout<<"zero";
else if(a>0)
cout<<"Positive";
else
{
int d=abs(a)-abs(b)+1;
if(d&1)
cout<<"Negative";
else
cout<<"Positive";
}
timer();
return 0;
}
Submission Info
Submission Time |
|
Task |
A - Range Product |
User |
nilesh8757 |
Language |
C++14 (GCC 5.4.1) |
Score |
0 |
Code Size |
2102 Byte |
Status |
WA |
Exec Time |
1 ms |
Memory |
256 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 |
AC |
1 ms |
256 KB |
0_01.txt |
AC |
1 ms |
256 KB |
0_02.txt |
WA |
1 ms |
256 KB |
1_00.txt |
AC |
1 ms |
256 KB |
1_01.txt |
AC |
1 ms |
256 KB |
1_02.txt |
AC |
1 ms |
256 KB |
1_03.txt |
WA |
1 ms |
256 KB |
2_00.txt |
AC |
1 ms |
256 KB |
2_01.txt |
AC |
1 ms |
256 KB |
2_02.txt |
AC |
1 ms |
256 KB |
2_03.txt |
WA |
1 ms |
256 KB |