Submission #3770823
Source Code Expand
import sys def solve(a, b): if a > 0: print('Positive') elif a <= 0 and b >= 0: print('Zero') elif (b - a) % 2 == 0: print('Negative') else: print('Positive') def readQuestion(): ws = sys.stdin.readline().strip().split() a = int(ws[0]) b = int(ws[1]) return (a, b,) def main(): solve(*readQuestion()) # Uncomment before submission main()
Submission Info
Submission Time | |
---|---|
Task | A - Range Product |
User | yamate11 |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 433 Byte |
Status | AC |
Exec Time | 18 ms |
Memory | 2940 KB |
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 | 18 ms | 2940 KB |
0_01.txt | AC | 18 ms | 2940 KB |
0_02.txt | AC | 18 ms | 2940 KB |
1_00.txt | AC | 18 ms | 2940 KB |
1_01.txt | AC | 18 ms | 2940 KB |
1_02.txt | AC | 18 ms | 2940 KB |
1_03.txt | AC | 18 ms | 2940 KB |
2_00.txt | AC | 18 ms | 2940 KB |
2_01.txt | AC | 18 ms | 2940 KB |
2_02.txt | AC | 18 ms | 2940 KB |
2_03.txt | AC | 18 ms | 2940 KB |