node_ids listlengths 4 1.4k | edge_index listlengths 1 2.22k | text listlengths 4 1.4k | source stringlengths 14 427k |
|---|---|---|---|
[
7,
15,
13,
0,
13,
18,
18,
13,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
40,
2,
13,
13,
17,
4,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,... | [
[
62,
4
],
[
59,
11
],
[
63,
18
],
[
59,
20
],
[
57,
24
],
[
60,
27
],
[
57,
35
],
[
60,
36
],
[
60,
45
],
[
57,
46
],
[
59,
57
],
[
59,
60
],
[
62,
63
]
] | [
"# n, m, l = map(int, input().split())\n\n# list_n = list(map(int, input().split()))\n\n# n = input()\n# list = [input() for i in range(N)\n\n# list = [[i for i in range(N)] for _ in range(M)]\n\nimport sys\ninput = sys.stdin.readline\n\na, b = map(int, input().split())\n\nif a > 0 and b > 0:\n print(\"Positive\... | # n, m, l = map(int, input().split())
# list_n = list(map(int, input().split()))
# n = input()
# list = [input() for i in range(N)
# list = [[i for i in range(N)] for _ in range(M)]
import sys
input = sys.stdin.readline
a, b = map(int, input().split())
if a > 0 and b > 0:
print("Positive")
elif a * b <= 0:
... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
14,
2,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
52,
2
],
[
52,
11
],
[
50,
15
],
[
53,
18
],
[
53,
25
],
[
53,
31
],
[
50,
32
],
[
50,
43
],
[
52,
50
],
[
52,
53
]
] | [
"a, b = map(int, input().split())\n\nif a <= 0 and b >= 0:\n print('Zero')\nif b < 0:\n if (b - a) % 2 == 0:\n print('Negative')\n else:\n print('Positive')\nif a > 0:\n print('Positive')",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int",
"inp... | a, b = map(int, input().split())
if a <= 0 and b >= 0:
print('Zero')
if b < 0:
if (b - a) % 2 == 0:
print('Negative')
else:
print('Positive')
if a > 0:
print('Positive') |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
14,
2,
2,
2,
40,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
18,
13,
... | [
[
111,
4
],
[
111,
15
],
[
109,
19
],
[
112,
22
],
[
109,
34
],
[
112,
37
],
[
109,
45
],
[
112,
46
],
[
109,
67
],
[
112,
70
],
[
109,
82
],
[
112,
85
],
[
109,
98... | [
"import sys\na,b = list(map(int, input().split()))\n\nif a<=0 and b>= 0:\n print(\"Zero\")\n sys.exit()\nelif a < 0 and b < 0:\n if (-(a-b)+1)%2 == 0:\n print(\"Positive\")\n sys.exit()\n else:\n print(\"Negative\")\n sys.exit()\nelif a==0 or b==0:\n print(\"Zero\")\n sys.exit()\nelif a>0 and b>0:... | import sys
a,b = list(map(int, input().split()))
if a<=0 and b>= 0:
print("Zero")
sys.exit()
elif a < 0 and b < 0:
if (-(a-b)+1)%2 == 0:
print("Positive")
sys.exit()
else:
print("Negative")
sys.exit()
elif a==0 or b==0:
print("Zero")
sys.exit()
elif a>0 and b>0:
print("Positive")
sys.ex... |
[
7,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
14,
40,
40,
13,
17,
13,
4,
13,
17,
14,
2,
17,
13,
4,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
13,
17,
10,
13,
13,
10,
13,
13
] | [
[
4,
3
],
[
3,
12
],
[
53,
14
],
[
53,
16
],
[
51,
20
],
[
54,
22
],
[
51,
29
],
[
54,
38
],
[
51,
39
],
[
53,
51
],
[
53,
54
]
] | [
"a,b = [int(i) for i in input().split()]\nif a <= 0 <= b:\n print(\"Zero\")\nelif 0 < a:\n print(\"Positive\")\nelse:\n if (b - a + 1)%2 == 0:\n print(\"Positive\")\n else:\n print(\"Negative\")",
"int(i) for i in input().split()",
"for i in input().split()",
"i",
"input().split()"... | a,b = [int(i) for i in input().split()]
if a <= 0 <= b:
print("Zero")
elif 0 < a:
print("Positive")
else:
if (b - a + 1)%2 == 0:
print("Positive")
else:
print("Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
18,
4,
13,
13,
13,
17,
13,
14,
40,
2,
13,
13,
17,
4,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
52,
2
],
[
52,
15
],
[
53,
19
],
[
50,
20
],
[
53,
27
],
[
50,
37
],
[
53,
38
],
[
52,
50
],
[
52,
53
]
] | [
"a,b=map(int,input().rstrip().split(' '))\nif(a*b<=0):\n print(\"Zero\")\nelse:\n if(a>0):\n print(\"Positive\")\n else:\n if((b-a+1)%2==0):\n print(\"Positive\")\n else:\n print(\"Negative\")",
"a,b=map(int,input().rstrip().split(' '))",
"a",
"map(int,input().rstrip().split(' '))",
"m... | a,b=map(int,input().rstrip().split(' '))
if(a*b<=0):
print("Zero")
else:
if(a>0):
print("Positive")
else:
if((b-a+1)%2==0):
print("Positive")
else:
print("Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
18,
4,
13,
17,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
4,
13,
17,
... | [
[
63,
2
],
[
63,
15
],
[
61,
18
],
[
61,
26
],
[
64,
29
],
[
61,
37
],
[
64,
40
],
[
64,
49
],
[
61,
50
],
[
63,
61
],
[
63,
64
]
] | [
"a, b = map(int, open(0).read().split())\n\nif a > 0:\n print('Positive')\nelif a == 0 or b == 0:\n print('Zero')\nelif a < 0 and b > 0:\n print('Zero')\nelif (b-a)%2 == 1:\n print('Positive')\nelse:\n print('Negative')",
"a, b = map(int, open(0).read().split())",
"a",
"map(int, open(0).read().... | a, b = map(int, open(0).read().split())
if a > 0:
print('Positive')
elif a == 0 or b == 0:
print('Zero')
elif a < 0 and b > 0:
print('Zero')
elif (b-a)%2 == 1:
print('Positive')
else:
print('Negative') |
[
7,
15,
13,
13,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
12,
13,
12,
13,
12,
13,
12,
13,
41,
28,
13,
4,
13,
13,
4,
4,
13,
12,
13,
23,
13,
4,
18,
13,
13,
2,
17,
17,
0,
13,
4,
13,
17,
0,
13,
2,
2,
17,
17,
17,
0,
... | [
[
25,
24
],
[
106,
30
],
[
34,
34
],
[
99,
43
],
[
114,
48
],
[
108,
55
],
[
106,
57
],
[
108,
58
],
[
97,
62
],
[
109,
64
],
[
109,
70
],
[
109,
79
],
[
97,
80
]... | [
"import sys, re\nfrom collections import deque, defaultdict, Counter\nfrom math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians\nfrom itertools import accumulate, permutations, combinations, product\nfrom operator import itemgetter, mul\nfrom copy import deepcopy\nfrom string import ascii_lowercase, asci... | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
17,
4,
13,
8,
2,
17,
13,
13,
8,
2,
2,
13,
17,
13,
17,
8,
2,
2,
13,
17,
2,
40,
40,
2,
13,
13,
17,
17,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13
] | [
[
50,
2
],
[
50,
11
],
[
47,
13
],
[
45,
20
],
[
48,
21
],
[
45,
25
],
[
51,
27
],
[
51,
32
],
[
51,
38
],
[
45,
39
],
[
48,
42
],
[
50,
45
],
[
47,
48
],
[
... | [
"a, b = map(int, input().split())\np = \"Positive\"\nprint(p if 0<a else \"Zero\" if a<0<b else \"Negative\" if b<0 and -~(b-a)%2 else p)",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"b",
"p = \"P... | a, b = map(int, input().split())
p = "Positive"
print(p if 0<a else "Zero" if a<0<b else "Negative" if b<0 and -~(b-a)%2 else p) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
13,
17,
8,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
50,
2
],
[
50,
11
],
[
51,
15
],
[
48,
18
],
[
48,
25
],
[
48,
32
],
[
51,
33
],
[
50,
48
],
[
50,
51
]
] | [
"a,b = map(int,input().split())\n\nif a <= 0 and b >= 0:\n\tprint(\"Zero\")\nelif b < 0: \n\tprint(\"Positive\") if (b - a + 1) % 2 == 0 else print(\"Negative\")\nelse:\n\tprint(\"Positive\")",
"a,b = map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().spli... | a,b = map(int,input().split())
if a <= 0 and b >= 0:
print("Zero")
elif b < 0:
print("Positive") if (b - a + 1) % 2 == 0 else print("Negative")
else:
print("Positive") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
17,
14,
2,
40,
13,
17,
40,
17,
13,
4,
13,
17,
14,
2,
13,
17,
14,
2,
13,
17,
0,
13,
2,
2,
13,
13,
17,
0,
13,
4,
13,
13,
14,
2,
13,
17,
4,
13,
17,
4,
13,
17,
... | [
[
72,
2
],
[
72,
11
],
[
66,
13
],
[
61,
18
],
[
73,
22
],
[
61,
28
],
[
73,
32
],
[
69,
35
],
[
61,
38
],
[
73,
39
],
[
63,
42
],
[
61,
45
],
[
64,
48
],
[
... | [
"a,b = map(int,input().split())\nm = 0\nif a<=0 and 0<=b:\n print('Zero')\nelif a<0:\n if b < 0:\n m = a-b+1\n else:\n m = abs(a)\n if m%2:\n print('Negative')\n else:\n print('Positive')\nelse:\n print('Positive')",
"a,b = map(int,input().split())",
"a",
"map(int... | a,b = map(int,input().split())
m = 0
if a<=0 and 0<=b:
print('Zero')
elif a<0:
if b < 0:
m = a-b+1
else:
m = abs(a)
if m%2:
print('Negative')
else:
print('Positive')
else:
print('Positive') |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
40,
40,
13,
17,
13,
4,
13,
17,
14,
2,
2,
4,
13,
17,
13,
13,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
40,
2
],
[
40,
11
],
[
41,
15
],
[
38,
17
],
[
38,
27
],
[
41,
28
],
[
40,
38
],
[
40,
41
]
] | [
"a,b=map(int,input().split())\nif a<=0<=b:\n print (\"Zero\")\nelif (min(0,b)-a)%2:\n print (\"Positive\")\nelse:\n print (\"Negative\")",
"a,b=map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"b",
"if a... | a,b=map(int,input().split())
if a<=0<=b:
print ("Zero")
elif (min(0,b)-a)%2:
print ("Positive")
else:
print ("Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
40,
2,
13,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
13,
4,
13,
17,
14,
2,
2,
4,
13,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
52,
2
],
[
52,
11
],
[
50,
15
],
[
53,
16
],
[
50,
24
],
[
50,
27
],
[
53,
28
],
[
50,
38
],
[
53,
39
],
[
52,
50
],
[
52,
53
]
] | [
"a,b=map(int,input().split())\nif a*b<=0:\n print(\"Zero\")\nelif a>0 or a==b:\n print(\"Positive\")\nelse:\n if abs(a-b) % 2 == 0:\n print(\"Negative\")\n else:\n print(\"Positive\")",
"a,b=map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().spli... | a,b=map(int,input().split())
if a*b<=0:
print("Zero")
elif a>0 or a==b:
print("Positive")
else:
if abs(a-b) % 2 == 0:
print("Negative")
else:
print("Positive") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
2,
2,
4,
13,
2,
13,
13,
17,
17,
17,
4,
13,
17,
14,
2,
2,
2,
4,
13,
2,
13... | [
[
68,
2
],
[
68,
11
],
[
69,
15
],
[
66,
18
],
[
69,
26
],
[
66,
29
],
[
66,
41
],
[
69,
42
],
[
66,
56
],
[
69,
57
],
[
68,
66
],
[
68,
69
]
] | [
"a,b=map(int,input().split())\nif a>0 and b>0:\n print(\"Positive\")\nelif a<=0 and b>=0:\n print(\"Zero\")\nelif (abs(b-a)+1)%2==0:\n print(\"Positive\")\nelif (abs(b-a)+1)%2==1:\n print(\"Negative\")",
"a,b=map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"int",
"input().... | a,b=map(int,input().split())
if a>0 and b>0:
print("Positive")
elif a<=0 and b>=0:
print("Zero")
elif (abs(b-a)+1)%2==0:
print("Positive")
elif (abs(b-a)+1)%2==1:
print("Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
40,
40,
13,
17,
13,
4,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
48,
2
],
[
48,
11
],
[
46,
14
],
[
49,
22
],
[
46,
24
],
[
49,
33
],
[
46,
34
],
[
48,
46
],
[
48,
49
]
] | [
"a,b = map(int,input().split())\n\nif a>0:\n print(\"Positive\")\nelif b >= 0 >= a:\n print(\"Zero\")\nelif (b-a+1)%2==0:\n print(\"Positive\")\nelse:\n print(\"Negative\")",
"a,b = map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"... | a,b = map(int,input().split())
if a>0:
print("Positive")
elif b >= 0 >= a:
print("Zero")
elif (b-a+1)%2==0:
print("Positive")
else:
print("Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
40,
2,
13,
13,
17,
4,
13,
17,
14,
2,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
50,
2
],
[
50,
11
],
[
51,
14
],
[
51,
22
],
[
48,
23
],
[
48,
30
],
[
48,
36
],
[
51,
37
],
[
50,
48
],
[
50,
51
]
] | [
"a, b = map(int, input().split())\n\nif a > 0:\n print('Positive')\nelif a * b <= 0:\n print('Zero')\nelif b < 0:\n if (b - a) % 2 == 0:\n print('Negative')\n else:\n print('Positive')",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int",
"input(... | a, b = map(int, input().split())
if a > 0:
print('Positive')
elif a * b <= 0:
print('Zero')
elif b < 0:
if (b - a) % 2 == 0:
print('Negative')
else:
print('Positive') |
[
7,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
13,
13,
10,
13,
13
] | [
[
4,
3
],
[
3,
12
],
[
53,
14
],
[
53,
16
],
[
51,
19
],
[
51,
27
],
[
54,
30
],
[
54,
39
],
[
51,
40
],
[
53,
51
],
[
53,
54
]
] | [
"a,b = [int(i) for i in input().split()]\n\nif a>0:\n print('Positive')\n\nelif a<0 and b>0:\n print('Zero')\n\nelif (b-a)%2 == 0:\n print('Negative')\nelse:\n print('Positive')",
"int(i) for i in input().split()",
"for i in input().split()",
"i",
"input().split()",
"().split",
"()",
"inpu... | a,b = [int(i) for i in input().split()]
if a>0:
print('Positive')
elif a<0 and b>0:
print('Zero')
elif (b-a)%2 == 0:
print('Negative')
else:
print('Positive')
|
[
7,
15,
13,
15,
13,
0,
13,
12,
2,
4,
13,
13,
17,
23,
0,
13,
18,
18,
18,
13,
13,
13,
13,
0,
13,
18,
18,
18,
13,
13,
13,
13,
0,
13,
18,
18,
18,
13,
13,
13,
13,
4,
18,
13,
13,
17,
0,
13,
4,
13,
13,
4,
18,
4,
13,
... | [
[
107,
6
],
[
98,
15
],
[
104,
24
],
[
92,
33
],
[
101,
47
],
[
105,
54
],
[
101,
56
],
[
102,
60
],
[
96,
63
],
[
102,
70
],
[
96,
80
],
[
102,
81
],
[
92,
93
],... | [
"#! /usr/bin/env python3\n\nimport sys\nimport numpy as np\nint1 = lambda x: int(x) - 1\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(500000)\n\nA, B = map(int, readline().split())\n\nif A <= 0 and B >= 0:\n print(\"Zero\")\neli... | #! /usr/bin/env python3
import sys
import numpy as np
int1 = lambda x: int(x) - 1
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(500000)
A, B = map(int, readline().split())
if A <= 0 and B >= 0:
print("Zero")
elif A > 0:
print("P... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
17,
14,
40,
13,
17,
14,
40,
13,
17,
0,
13,
17,
0,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
0,
13,
17,
0,
13,
17,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10... | [
[
53,
2
],
[
53,
11
],
[
59,
13
],
[
48,
17
],
[
54,
21
],
[
65,
24
],
[
56,
27
],
[
48,
33
],
[
54,
34
],
[
62,
38
],
[
50,
41
],
[
51,
45
],
[
63,
45
],
[
... | [
"a, b = map(int, input().split())\nres = ''\nif b >= 0:\n if a <= 0:\n res = 'Zero'\n else:\n res = 'Positive'\nelse:\n if (b - a) % 2 == 0:\n res = 'Negative'\n else:\n res = 'Positive'\nprint(res)",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",... | a, b = map(int, input().split())
res = ''
if b >= 0:
if a <= 0:
res = 'Zero'
else:
res = 'Positive'
else:
if (b - a) % 2 == 0:
res = 'Negative'
else:
res = 'Positive'
print(res) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
17,
13,
4,
13,
17,
14,
2,
2,
13,
17,
40,
17,
13,
4,
13,
17,
0,
13,
4,
13,
2,
2,
13,
13,
17,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
... | [
[
55,
2
],
[
55,
11
],
[
56,
15
],
[
56,
22
],
[
53,
26
],
[
58,
31
],
[
56,
36
],
[
53,
37
],
[
59,
42
],
[
55,
53
],
[
55,
56
],
[
58,
59
]
] | [
"a, b = map(int, input().split())\n\nif 0 < a:\n print(\"Positive\")\nelif a == 0 or 0 <= b:\n print(\"Zero\")\nelse:\n length = abs(a + b + 1)\n if length % 2 == 0:\n print(\"Positive\")\n else:\n print(\"Negative\")",
"a, b = map(int, input().split())",
"a",
"map(int, input().sp... | a, b = map(int, input().split())
if 0 < a:
print("Positive")
elif a == 0 or 0 <= b:
print("Zero")
else:
length = abs(a + b + 1)
if length % 2 == 0:
print("Positive")
else:
print("Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
54,
2
],
[
54,
11
],
[
55,
15
],
[
52,
18
],
[
55,
26
],
[
52,
29
],
[
52,
39
],
[
55,
40
],
[
54,
52
],
[
54,
55
]
] | [
"a, b = map(int, input().split())\n\nif (a > 0) & (b > 0):\n print('Positive')\nelif (a <= 0) & (b >= 0):\n print('Zero')\nelse:\n if (b - a + 1) % 2 == 1:\n print('Negative')\n else:\n print('Positive')",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",... | a, b = map(int, input().split())
if (a > 0) & (b > 0):
print('Positive')
elif (a <= 0) & (b >= 0):
print('Zero')
else:
if (b - a + 1) % 2 == 1:
print('Negative')
else:
print('Positive') |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
4,
13,
14,
2,
13,
17,
4,
13,
17,
4,
13,
0,
13,
17,
28,
13,
4,
13,
13,
2,
13,
17,
0,
13,
17,
14,
2,
2,
13,
17,
17,
4,
13,
... | [
[
67,
2
],
[
67,
11
],
[
68,
15
],
[
62,
18
],
[
68,
27
],
[
70,
35
],
[
39,
38
],
[
68,
41
],
[
62,
43
],
[
64,
46
],
[
65,
51
],
[
71,
51
],
[
67,
62
],
[
... | [
"a,b=map(int,input().split())\nif a<=0 and b>=0:\n print(\"Zero\")\n exit()\nif a>0:\n print(\"Positive\")\n exit()\ntmp=0\nfor i in range(a,b+1):\n tmp+=1\nif tmp%2==0:\n print(\"Positive\")\nelse:\n print(\"Negative\")",
"a,b=map(int,input().split())",
"a",
"map(int,input().split())",
... | a,b=map(int,input().split())
if a<=0 and b>=0:
print("Zero")
exit()
if a>0:
print("Positive")
exit()
tmp=0
for i in range(a,b+1):
tmp+=1
if tmp%2==0:
print("Positive")
else:
print("Negative") |
[
7,
15,
13,
0,
13,
18,
18,
13,
13,
13,
4,
18,
13,
13,
2,
17,
17,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
4,
18,
13,
13,
17,
14,
2,
13,
17,
4,
13,
17,
4,
18,
13,
13,
17,
14,
2,
13,
1... | [
[
101,
4
],
[
95,
18
],
[
102,
25
],
[
95,
27
],
[
93,
30
],
[
93,
42
],
[
93,
54
],
[
96,
58
],
[
96,
70
],
[
98,
73
],
[
96,
76
],
[
93,
77
],
[
99,
82
],
[
... | [
"import sys\ninput = sys.stdin.readline\nsys.setrecursionlimit(10 ** 7)\n\na, b = map(int, input().split())\n\nif a > 0:\n print('Positive')\n sys.exit(0)\nif a == 0:\n print('Zero')\n sys.exit(0)\nif a < 0:\n if b >= 0:\n print('Zero')\n sys.exit(0)\n if b < 0:\n diff = (b - ... | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
a, b = map(int, input().split())
if a > 0:
print('Positive')
sys.exit(0)
if a == 0:
print('Zero')
sys.exit(0)
if a < 0:
if b >= 0:
print('Zero')
sys.exit(0)
if b < 0:
diff = (b - a) + 1
if diff... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
54,
2
],
[
54,
11
],
[
52,
15
],
[
55,
18
],
[
52,
26
],
[
55,
29
],
[
55,
39
],
[
52,
40
],
[
54,
52
],
[
54,
55
]
] | [
"a,b=map(int,input().split())\nif (a<=0)&(b>=0):\n print(\"Zero\")\nelif(a>0)&(b>0):\n print(\"Positive\")\nelse:\n if (b-a+1)%2==0:\n print(\"Positive\")\n else:\n print(\"Negative\")",
"a,b=map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"int",
"input().spl... | a,b=map(int,input().split())
if (a<=0)&(b>=0):
print("Zero")
elif(a>0)&(b>0):
print("Positive")
else:
if (b-a+1)%2==0:
print("Positive")
else:
print("Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
14,
2,
2,
13... | [
[
82,
2
],
[
82,
11
],
[
83,
15
],
[
80,
18
],
[
83,
26
],
[
80,
29
],
[
83,
37
],
[
80,
40
],
[
83,
48
],
[
80,
51
],
[
80,
56
],
[
83,
57
],
[
80,
67
],
[
... | [
"a,b = map(int,input().split())\n\nif(a == 0 or b == 0):\n print(\"Zero\")\nelif(a<0 and b>0):\n print(\"Zero\")\nelif(a>0 and b>0):\n print(\"Positive\")\nelif(a<0 and b<0):\n if(b-a == 1):\n print(\"Positive\")\n elif((b-a+1)%2 == 0):\n print(\"Positive\")\n else:\n print(\"Negative\")",
"a,b = m... | a,b = map(int,input().split())
if(a == 0 or b == 0):
print("Zero")
elif(a<0 and b>0):
print("Zero")
elif(a>0 and b>0):
print("Positive")
elif(a<0 and b<0):
if(b-a == 1):
print("Positive")
elif((b-a+1)%2 == 0):
print("Positive")
else:
print("Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
13,
17,
14,
2,
2,
2,
4,
13,
2,
13,
17,
17,
13,
17,
17,
4,
13,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
53,
2
],
[
53,
11
],
[
54,
15
],
[
51,
18
],
[
54,
25
],
[
51,
34
],
[
54,
37
],
[
53,
51
],
[
53,
54
]
] | [
"a, b = map(int,input().split())\nif a <= 0 and b >= 0:\n print('Zero')\nelse:\n if a < 0:\n if (min(b+1, 0)-a)%2==0:\n print('Positive')\n else:\n print('Negative')\n\n else:\n print('Positive')",
"a, b = map(int,input().split())",
"a",
"map(int,input().spl... | a, b = map(int,input().split())
if a <= 0 and b >= 0:
print('Zero')
else:
if a < 0:
if (min(b+1, 0)-a)%2==0:
print('Positive')
else:
print('Negative')
else:
print('Positive') |
[
7,
15,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
17,
13,
14,
2,
2,
4,
18,
13,
13,
13,
17,
2,
4,
18,
13,
13,
13,
17,
4,
13,
17,
14,
2,
2,
4,
18,
13,
13,
13,
17,
2,
4,
18,
13,
13,
13,
17,
4,
13,
17,
14,
2,
2,
... | [
[
89,
4
],
[
89,
14
],
[
90,
22
],
[
87,
29
],
[
90,
41
],
[
87,
48
],
[
90,
60
],
[
87,
67
],
[
87,
74
],
[
90,
75
],
[
89,
87
],
[
89,
90
]
] | [
"import numpy as np\na,b = map(int,input().split(' '))\nif np.sign(a)==1 and np.sign(b) == 1:\n print('Positive')\nelif np.sign(a) == -1 and np.sign(b) == 1:\n print('Zero')\nelif np.sign(a) == -1 and np.sign(b) == -1:\n if (b - a + 1) % 2 == 0:\n print('Positive')\n else:\n print('Negativ... | import numpy as np
a,b = map(int,input().split(' '))
if np.sign(a)==1 and np.sign(b) == 1:
print('Positive')
elif np.sign(a) == -1 and np.sign(b) == 1:
print('Zero')
elif np.sign(a) == -1 and np.sign(b) == -1:
if (b - a + 1) % 2 == 0:
print('Positive')
else:
print('Negative') |
[
7,
0,
13,
17,
0,
13,
2,
17,
17,
12,
13,
15,
13,
0,
13,
18,
18,
13,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
40,
2,
13,
13,
17,
4,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
13,
17,
4,
13,
17... | [
[
72,
2
],
[
69,
5
],
[
15,
14
],
[
22,
21
],
[
14,
28
],
[
22,
30
],
[
21,
34
],
[
30,
35
],
[
21,
42
],
[
30,
50
],
[
21,
51
],
[
67,
64
],
[
69,
70
],
[
... | [
"mod = 1000000007\neps = 10**-9\n\n\ndef main():\n import sys\n input = sys.stdin.readline\n\n a, b = map(int, input().split())\n if a * b <= 0:\n print(\"Zero\")\n else:\n if a > 0:\n print(\"Positive\")\n else:\n if (b - a) & 1:\n print(\"Po... | mod = 1000000007
eps = 10**-9
def main():
import sys
input = sys.stdin.readline
a, b = map(int, input().split())
if a * b <= 0:
print("Zero")
else:
if a > 0:
print("Positive")
else:
if (b - a) & 1:
print("Positive")
else:... |
[
7,
12,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
29,
14,
2,
2,
13,
17,
40,
13,
17,
4,
13,
17,
29,
4,
13,
8,
2,
2,
2,
2,
13,
13,
17,
17,
17,
17,
17,
14,
2,
13,
17,
4,
13,
10,
12,
... | [
[
5,
4
],
[
5,
13
],
[
4,
16
],
[
13,
25
],
[
4,
28
],
[
13,
41
],
[
4,
42
],
[
56,
53
]
] | [
"def main():\n a, b = map(int, input().split())\n\n if a > 0:\n print(\"Positive\")\n return\n\n if b > 0 and a <= 0:\n print(\"Zero\")\n return\n\n print(\"Positive\" if(b - a + 1) % 2 == 0 else \"Negative\")\n\n\nif __name__ == '__main__':\n main()",
"def main():\n ... | def main():
a, b = map(int, input().split())
if a > 0:
print("Positive")
return
if b > 0 and a <= 0:
print("Zero")
return
print("Positive" if(b - a + 1) % 2 == 0 else "Negative")
if __name__ == '__main__':
main()
|
[
7,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
4,
13,
14,
2,
13,
17,
4,
13,
17,
4,
13,
14,
2,
2,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
54,
2
],
[
54,
13
],
[
52,
17
],
[
55,
20
],
[
52,
29
],
[
55,
40
],
[
52,
41
],
[
54,
52
],
[
54,
55
]
] | [
"a, b = list(map(int, input().split()))\n\nif a <= 0 and b >= 0:\n print(\"Zero\")\n exit()\n\nif a > 0:\n print(\"Positive\")\n exit()\n\nif (b - a + 1) % 2:\n print(\"Negative\")\nelse:\n print(\"Positive\")",
"a, b = list(map(int, input().split()))",
"a",
"list(map(int, input().split()))",
"list",
... | a, b = list(map(int, input().split()))
if a <= 0 and b >= 0:
print("Zero")
exit()
if a > 0:
print("Positive")
exit()
if (b - a + 1) % 2:
print("Negative")
else:
print("Positive")
|
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
40,
13,
17,
4,
13,
8,
40,
13,
17,
17,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
40,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,
17,... | [
[
66,
2
],
[
66,
11
],
[
64,
14
],
[
64,
20
],
[
64,
27
],
[
67,
30
],
[
67,
37
],
[
67,
41
],
[
64,
51
],
[
67,
52
],
[
66,
64
],
[
66,
67
]
] | [
"a,b=map(int,input().split())\nif a>=0:\n print(\"Positive\" if a!=0 else \"Zero\")\nif a<0 and b>0:\n print(\"Zero\")\nif b<=0:\n if b==0:\n print(\"Zero\")\n else:\n if (a-b+1)%2==0:\n print(\"Positive\")\n else:\n print(\"Negative\")",
"a,b=map(int,input()... | a,b=map(int,input().split())
if a>=0:
print("Positive" if a!=0 else "Zero")
if a<0 and b>0:
print("Zero")
if b<=0:
if b==0:
print("Zero")
else:
if (a-b+1)%2==0:
print("Positive")
else:
print("Negative") |
[
7,
41,
28,
13,
4,
18,
4,
18,
4,
13,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
14,
2,
40,
13,
17,
40,
17,
13,
4,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
13,
17,
4,
13,
17,
4,
13,
17,
10,
13,
13,
10,
13,
1... | [
[
4,
3
],
[
3,
15
],
[
54,
17
],
[
54,
19
],
[
55,
23
],
[
52,
27
],
[
55,
33
],
[
52,
41
],
[
55,
42
],
[
54,
52
],
[
54,
55
]
] | [
"a, b = [int(x) for x in input().strip().split()]\nif a <= 0 and 0 <= b:\n print('Zero')\nelif a > 0:\n print('Positive')\nelse:\n if (b - a) % 2:\n print('Positive')\n else:\n print('Negative')",
"int(x) for x in input().strip().split()",
"for x in input().strip().split()",
"x",
"input().strip().... | a, b = [int(x) for x in input().strip().split()]
if a <= 0 and 0 <= b:
print('Zero')
elif a > 0:
print('Positive')
else:
if (b - a) % 2:
print('Positive')
else:
print('Negative') |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
17,
14,
2,
40,
13,
17,
40,
13,
17,
0,
13,
17,
14,
2,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
4,
13,
13,
10,
4,
13,
10,
... | [
[
62,
2
],
[
62,
11
],
[
68,
13
],
[
54,
18
],
[
63,
21
],
[
65,
24
],
[
63,
28
],
[
63,
35
],
[
54,
36
],
[
56,
41
],
[
59,
44
],
[
71,
47
],
[
72,
51
],
[
... | [
"a, b=map(int, input().split())\nans=''\n\nif a<=0 and b>=0:\n ans='Zero'\nelif b<0:\n if (b-a+1)%2==0:\n ans='Positive'\n else:\n ans='Negative'\nelse:\n ans='Positive'\nprint(ans)",
"a, b=map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().spl... | a, b=map(int, input().split())
ans=''
if a<=0 and b>=0:
ans='Zero'
elif b<0:
if (b-a+1)%2==0:
ans='Positive'
else:
ans='Negative'
else:
ans='Positive'
print(ans) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
14,
40,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
13,
17,
14,
2,
13,
17,
14,
40,
2,
40,
13,... | [
[
71,
2
],
[
71,
11
],
[
69,
15
],
[
72,
18
],
[
69,
26
],
[
72,
29
],
[
69,
36
],
[
72,
37
],
[
69,
49
],
[
69,
55
],
[
71,
69
],
[
71,
72
]
] | [
"a,b = map(int,input().split())\n\nif a <= 0 and b >= 0:\n print(\"Zero\")\nelif a < 0 and b < 0:\n if (a-b+2)%2 != 0:\n print(\"Positive\")\n else:\n print(\"Negative\")\nelif a < 0:\n if -a%2 != 0:\n print(\"Positive\")\n else:\n print(\"Negative\")\nelse:\n print(\"Positive\")",
"a,b = map(in... | a,b = map(int,input().split())
if a <= 0 and b >= 0:
print("Zero")
elif a < 0 and b < 0:
if (a-b+2)%2 != 0:
print("Positive")
else:
print("Negative")
elif a < 0:
if -a%2 != 0:
print("Positive")
else:
print("Negative")
else:
print("Positive") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
13,
0,
13,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
2,
40,
13,
13,
17,
17,
4,
13,
17,
4,
... | [
[
62,
2
],
[
62,
11
],
[
60,
14
],
[
63,
15
],
[
65,
17
],
[
63,
18
],
[
68,
19
],
[
66,
20
],
[
60,
20
],
[
66,
24
],
[
60,
24
],
[
69,
27
],
[
63,
27
],
[
... | [
"a, b = map(int, input().split())\n\nif a > b:\n a, b = b, a\n\nif a <= 0 and b >= 0:\n print('Zero')\nelif a > 0 and b > 0:\n print('Positive')\nelse:\n if (- a - b) % 2 == 0:\n print('Negative')\n else:\n print('Positive')",
"a, b = map(int, input().split())",
"a",
"map(int, inp... | a, b = map(int, input().split())
if a > b:
a, b = b, a
if a <= 0 and b >= 0:
print('Zero')
elif a > 0 and b > 0:
print('Positive')
else:
if (- a - b) % 2 == 0:
print('Negative')
else:
print('Positive')
|
[
7,
15,
13,
12,
13,
14,
40,
40,
13,
17,
13,
4,
13,
17,
29,
14,
2,
17,
13,
4,
13,
17,
29,
14,
2,
2,
2,
4,
13,
2,
13,
13,
17,
17,
17,
4,
13,
17,
29,
4,
13,
17,
29,
23,
13,
23,
13,
12,
13,
12,
13,
28,
13,
18,
13,... | [
[
44,
8
],
[
46,
10
],
[
44,
18
],
[
44,
30
],
[
46,
31
],
[
44,
44
],
[
46,
46
],
[
53,
52
],
[
58,
57
],
[
52,
60
],
[
57,
63
],
[
66,
65
],
[
50,
67
],
[
... | [
"#!/usr/bin/env python3\nimport sys\n\n\ndef solve(a: int, b: int):\n if a <= 0 <= b:\n print(\"Zero\")\n return\n if 0 < a:\n print(\"Positive\")\n return\n if (abs(a-b)+1) % 2 == 1:\n print(\"Negative\")\n return\n print(\"Positive\")\n\n return\n\n\n# Gene... | #!/usr/bin/env python3
import sys
def solve(a: int, b: int):
if a <= 0 <= b:
print("Zero")
return
if 0 < a:
print("Positive")
return
if (abs(a-b)+1) % 2 == 1:
print("Negative")
return
print("Positive")
return
# Generated by 1.1.7.1 https://github.... |
[
7,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
17,
13,
4,
13,
17,
4,
13,
14,
2,
40,
17,
13,
40,
13,
17,
4,
13,
17,
4,
13,
14,
2,
13,
17,
14,
2,
2,
4,
13,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
4,
... | [
[
64,
2
],
[
64,
13
],
[
62,
17
],
[
65,
27
],
[
62,
29
],
[
65,
38
],
[
62,
46
],
[
65,
47
],
[
64,
62
],
[
64,
65
]
] | [
"a,b= list(map(int,input().split()))\nif 0 < a:\n print(\"Positive\")\n exit()\nelif 0<=b and a<=0:\n print(\"Zero\")\n exit()\nelif b < 0:\n if abs(a-b)%2==0:\n print(\"Negative\")\n exit()\n else:\n print(\"Positive\")\n exit()",
"a,b= list(map(int,input().split()))... | a,b= list(map(int,input().split()))
if 0 < a:
print("Positive")
exit()
elif 0<=b and a<=0:
print("Zero")
exit()
elif b < 0:
if abs(a-b)%2==0:
print("Negative")
exit()
else:
print("Positive")
exit() |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
17,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
14,
2,
2,
13,
17,
40,
13,
17,
4,
13,
17... | [
[
75,
2
],
[
75,
11
],
[
73,
15
],
[
73,
21
],
[
76,
22
],
[
73,
32
],
[
73,
38
],
[
76,
39
],
[
76,
49
],
[
73,
52
],
[
76,
59
],
[
76,
66
],
[
75,
73
],
[
... | [
"a,b = map(int,input().split())\nif b<0 and (b-a+1)%2==0:\n print(\"Positive\")\nelif b<0 and (b-a+1)%2==1:\n print(\"Negative\")\nelif a<0 and b>=0:\n print(\"Zero\")\nelif a==0:\n print(\"Zero\")\nelif a>0:\n print(\"Positive\")",
"a,b = map(int,input().split())",
"a",
"map(int,input().split(... | a,b = map(int,input().split())
if b<0 and (b-a+1)%2==0:
print("Positive")
elif b<0 and (b-a+1)%2==1:
print("Negative")
elif a<0 and b>=0:
print("Zero")
elif a==0:
print("Zero")
elif a>0:
print("Positive") |
[
7,
12,
13,
29,
4,
13,
4,
13,
12,
13,
29,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
12,
13,
0,
13,
4,
13,
29,
4,
13,
18,
13,
39,
4,
13,
13,
12,
13,
29,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
0,
13,
17,
14,... | [
[
25,
24
],
[
24,
31
],
[
24,
35
],
[
138,
48
],
[
124,
50
],
[
138,
51
],
[
120,
53
],
[
133,
59
],
[
133,
61
],
[
139,
62
],
[
129,
64
],
[
133,
69
],
[
139,
70
... | [
"# For taking integer inputs.\ndef inp():\n return(int(input()))\n\n\n# For taking List inputs.\ndef inlist():\n return(list(map(int, input().split())))\n\n\n# For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings ... | # For taking integer inputs.
def inp():
return(int(input()))
# For taking List inputs.
def inlist():
return(list(map(int, input().split())))
# For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable.
... |
[
7,
15,
13,
0,
13,
18,
18,
18,
13,
13,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
4,
13,
17,
14,
2,
40,
13,
17,
40,
17,
13,
4,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
0... | [
[
84,
4
],
[
90,
13
],
[
85,
20
],
[
90,
22
],
[
91,
25
],
[
91,
36
],
[
88,
40
],
[
91,
50
],
[
88,
53
],
[
81,
56
],
[
88,
59
],
[
91,
60
],
[
82,
65
],
[
... | [
"import sys\ninput = sys.stdin.buffer.readline\na,b=map(int,input().split())\nif a>0:\n print(\"Positive\")\n exit(0)\nelif a<=0 and 0<=b:\n print(\"Zero\")\n exit(0)\nelif a<0 and b<0:\n num=b-a+1\n if num%2==0:\n print(\"Positive\")\n exit(0)\n else:\n print(\"Negative\")... | import sys
input = sys.stdin.buffer.readline
a,b=map(int,input().split())
if a>0:
print("Positive")
exit(0)
elif a<=0 and 0<=b:
print("Zero")
exit(0)
elif a<0 and b<0:
num=b-a+1
if num%2==0:
print("Positive")
exit(0)
else:
print("Negative")
exit(0) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
4,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,... | [
[
71,
2
],
[
71,
11
],
[
72,
16
],
[
69,
19
],
[
72,
23
],
[
69,
26
],
[
72,
37
],
[
69,
40
],
[
69,
53
],
[
72,
54
],
[
71,
69
],
[
71,
72
]
] | [
"a, b = map(int, input().split())\n\n# == 0\nif ((a == 0) or (b == 0) or (a < 0 and b > 0)):\n print(\"Zero\")\n exit(0)\n\n# > 0\nif (a > 0 and b > 0):\n print(\"Positive\")\n exit(0)\n\nif (b - a + 1) % 2 == 0:\n print(\"Positive\")\n exit(0)\n\n# < 0\nprint(\"Negative\")",
"a, b = map(int, in... | a, b = map(int, input().split())
# == 0
if ((a == 0) or (b == 0) or (a < 0 and b > 0)):
print("Zero")
exit(0)
# > 0
if (a > 0 and b > 0):
print("Positive")
exit(0)
if (b - a + 1) % 2 == 0:
print("Positive")
exit(0)
# < 0
print("Negative")
|
[
7,
12,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
14,
40,
2,
13,
13,
17,
4,
13,
17,
14,
2,
17,
13,
4,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
13,
17,
14,
2,
13,
17,
4,
... | [
[
6,
5
],
[
5,
14
],
[
17,
16
],
[
17,
18
],
[
16,
22
],
[
18,
23
],
[
16,
31
],
[
18,
40
],
[
16,
41
],
[
59,
56
]
] | [
"def main():\n a, b = (int(i) for i in input().split())\n if a*b <= 0:\n print(\"Zero\")\n elif 0 < a:\n print(\"Positive\")\n else:\n if (b-a+1) % 2 == 0:\n print(\"Positive\")\n else:\n print(\"Negative\")\n\n\nif __name__ == '__main__':\n main()",
... | def main():
a, b = (int(i) for i in input().split())
if a*b <= 0:
print("Zero")
elif 0 < a:
print("Positive")
else:
if (b-a+1) % 2 == 0:
print("Positive")
else:
print("Negative")
if __name__ == '__main__':
main()
|
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
17,
40,
13,
17,
0,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
4,
13,
2,
13,
13,
17,
17,
0,
13,
17,
0,
13,
17,
4,
13,
13,
10,
4,
13,
10,
17,
13,
... | [
[
63,
2
],
[
63,
11
],
[
64,
15
],
[
52,
18
],
[
60,
21
],
[
64,
27
],
[
52,
30
],
[
64,
37
],
[
52,
38
],
[
54,
42
],
[
57,
45
],
[
58,
49
],
[
55,
49
],
[
... | [
"a,b = map(int,input().split())\n\nif a < 0 and b >= 0:\n ans = 'Zero'\nelif a < 0 and b < 0 and abs(a-b) % 2 == 0:\n ans = 'Negative'\nelse:\n ans = 'Positive'\n\nprint(ans)",
"a,b = map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"(... | a,b = map(int,input().split())
if a < 0 and b >= 0:
ans = 'Zero'
elif a < 0 and b < 0 and abs(a-b) % 2 == 0:
ans = 'Negative'
else:
ans = 'Positive'
print(ans) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
17,
13,
0,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
0,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
0,
13,
17,
0,
13,
17,
4,
13,
13,
10,
1... | [
[
68,
2
],
[
68,
11
],
[
60,
16
],
[
69,
17
],
[
60,
21
],
[
69,
23
],
[
56,
25
],
[
60,
30
],
[
69,
33
],
[
65,
36
],
[
69,
42
],
[
60,
43
],
[
62,
47
],
[
... | [
"a, b = map(int, input().split())\nif a*b == 0 or a < 0 < b:\n ans = 'Zero'\nelif a > 0 and b > 0:\n ans = 'Positive'\nelse:\n if (b - a) % 2 == 0:\n ans = 'Negative'\n else:\n ans = 'Positive'\n\nprint(ans)",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"m... | a, b = map(int, input().split())
if a*b == 0 or a < 0 < b:
ans = 'Zero'
elif a > 0 and b > 0:
ans = 'Positive'
else:
if (b - a) % 2 == 0:
ans = 'Negative'
else:
ans = 'Positive'
print(ans) |
[
7,
15,
13,
15,
13,
15,
13,
15,
13,
15,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
14,
40,
2,
13,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
... | [
[
14,
13
],
[
13,
22
],
[
73,
24
],
[
76,
27
],
[
74,
29
],
[
79,
32
],
[
74,
34
],
[
77,
39
],
[
80,
40
],
[
77,
48
],
[
80,
51
],
[
80,
62
],
[
77,
63
],
[
... | [
"import sys\nimport copy\nimport math\nimport itertools\nimport numpy as np\nl = [int(c) for c in input().split()]\na = l[0]\nb = l[1]\nif a*b <= 0:\n print(\"Zero\")\nelif a > 0 and b > 0:\n print(\"Positive\")\nelse:\n if abs(b-a)%2==1:\n print(\"Positive\")\n else:\n print(\"Negative\")... | import sys
import copy
import math
import itertools
import numpy as np
l = [int(c) for c in input().split()]
a = l[0]
b = l[1]
if a*b <= 0:
print("Zero")
elif a > 0 and b > 0:
print("Positive")
else:
if abs(b-a)%2==1:
print("Positive")
else:
print("Negative")
|
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
40,
13,
17,
4,
13,
17,
0,
13,
2,
2,
13,
13,
17,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
2,
13,
10,
4,
13,
10,
4,
13
] | [
[
52,
2
],
[
52,
11
],
[
50,
14
],
[
53,
21
],
[
46,
27
],
[
53,
30
],
[
50,
31
],
[
47,
36
],
[
46,
47
],
[
52,
50
],
[
52,
53
]
] | [
"a, b = map(int, input().split())\nif a > 0:\n print('Positive')\nelif b >= 0:\n print('Zero')\nelse:\n cnt = b - a + 1\n if cnt % 2 == 0:\n print('Positive')\n else:\n print('Negative')",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int",
"i... | a, b = map(int, input().split())
if a > 0:
print('Positive')
elif b >= 0:
print('Zero')
else:
cnt = b - a + 1
if cnt % 2 == 0:
print('Positive')
else:
print('Negative') |
[
7,
15,
13,
0,
13,
18,
18,
13,
13,
13,
12,
13,
12,
13,
12,
13,
12,
13,
0,
13,
2,
2,
17,
17,
17,
0,
13,
4,
13,
13,
14,
40,
40,
13,
17,
13,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
13,
17,
0,
... | [
[
88,
4
],
[
20,
19
],
[
27,
26
],
[
92,
28
],
[
27,
29
],
[
26,
33
],
[
29,
35
],
[
26,
42
],
[
29,
45
],
[
29,
52
],
[
56,
55
],
[
59,
58
],
[
55,
61
],
[
... | [
"import sys\ninput = sys.stdin.readline\n\ndef I(): return int(input())\ndef MI(): return map(int, input().split())\ndef LI(): return list(map(int, input().split()))\n\ndef main():\n mod=10**9+7\n a,b=MI()\n \n if a<=0<=b:\n print(\"Zero\")\n \n elif a>0 and b>0:\n print(\"Positive\"... | import sys
input = sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def main():
mod=10**9+7
a,b=MI()
if a<=0<=b:
print("Zero")
elif a>0 and b>0:
print("Positive")
else:
if b... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
2,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
44,
2
],
[
44,
11
],
[
42,
14
],
[
45,
21
],
[
45,
27
],
[
42,
28
],
[
44,
42
],
[
44,
45
]
] | [
"A,B = map(int, input().split())\nif A > 0:\n print(\"Positive\")\nelif B<0:\n if((B-A)%2 == 0):\n print(\"Negative\")\n else:\n print(\"Positive\")\nelse:\n print(\"Zero\")",
"A,B = map(int, input().split())",
"A",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
... | A,B = map(int, input().split())
if A > 0:
print("Positive")
elif B<0:
if((B-A)%2 == 0):
print("Negative")
else:
print("Positive")
else:
print("Zero") |
[
7,
15,
13,
13,
13,
13,
13,
13,
13,
13,
15,
13,
12,
13,
12,
13,
12,
13,
12,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
18,
4,
18,
18,
13,
13,
13,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
2,
40,
13,
17,
40,
13,
17... | [
[
79,
21
],
[
79,
39
],
[
77,
42
],
[
77,
50
],
[
80,
53
],
[
77,
62
],
[
80,
63
],
[
79,
77
],
[
79,
80
]
] | [
"import bisect,collections,copy,heapq,itertools,math,numpy,string\nimport sys\ndef S(): return sys.stdin.readline().rstrip()\ndef I(): return int(sys.stdin.readline().rstrip())\ndef LI(): return list(map(int,sys.stdin.readline().rstrip().split()))\ndef LS(): return list(sys.stdin.readline().rstrip().split())\n#N = ... | import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
#N = I()
#A = [L... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
14,
2,
2,
2,... | [
[
71,
2
],
[
71,
11
],
[
72,
15
],
[
69,
18
],
[
72,
26
],
[
69,
29
],
[
72,
37
],
[
69,
40
],
[
72,
48
],
[
69,
51
],
[
72,
57
],
[
69,
58
],
[
71,
69
],
[
... | [
"a,b=map(int,input().split())\nif a>0 and b>0:\n print('Positive')\nelif a==0 or b==0:\n print('Zero')\nelse:\n if a<0 and b>0:\n print('Zero')\n elif a<0 and b<0:\n if (a-b)%2==0:\n print('Negative')\n else:\n print('Positive')",
"a,b=map(int,input().split()... | a,b=map(int,input().split())
if a>0 and b>0:
print('Positive')
elif a==0 or b==0:
print('Zero')
else:
if a<0 and b>0:
print('Zero')
elif a<0 and b<0:
if (a-b)%2==0:
print('Negative')
else:
print('Positive') |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
2,
2,
2,
2,
13,
2,
17,
13,
17,
2,
2,
13,
17,
2,
17,
13,
2,
2,
13,
17,
2,
17,
13,
0,
13,
2,
2,
2,
13,
17,
2,
17,
13,
40,
2,
2,
2,
13,
13,
17,
17,
17,
0,
... | [
[
100,
2
],
[
100,
11
],
[
103,
13
],
[
92,
18
],
[
101,
21
],
[
92,
25
],
[
101,
29
],
[
101,
32
],
[
92,
36
],
[
97,
38
],
[
92,
42
],
[
101,
46
],
[
92,
51
],
... | [
"a, b = map(int, input().split())\nzero = (a == 0 | b == 0) | (a < 0 and 0 < b) | (b < 0 and 0 < a)\nnegative_a = (a < 0 and 0 < b) and (a + b + 1) % 2 != 0\nnegative_b = (a < 0 | b < 0) and (a + b + 1) % 2 != 0\nif zero:\n print(\"Zero\")\nelif negative_a | negative_b:\n print(\"Negative\")\nelse:\n print... | a, b = map(int, input().split())
zero = (a == 0 | b == 0) | (a < 0 and 0 < b) | (b < 0 and 0 < a)
negative_a = (a < 0 and 0 < b) and (a + b + 1) % 2 != 0
negative_b = (a < 0 | b < 0) and (a + b + 1) % 2 != 0
if zero:
print("Zero")
elif negative_a | negative_b:
print("Negative")
else:
print("Positive") |
[
7,
15,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
40,
13,
17,
4,
13,
17,
4,
18,
13,
13,
14,
40,
13,
17,
4,
13,
17,
4,
18,
13,
13,
14,
2,
2,
4,
13,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10... | [
[
56,
4
],
[
56,
13
],
[
54,
16
],
[
57,
27
],
[
54,
42
],
[
57,
43
],
[
56,
54
],
[
56,
57
]
] | [
"import sys\na,b=map(int,input().split())\nif a>=0:\n print(\"Positive\")\n sys.exit()\nif b>=0:\n print(\"Zero\")\n sys.exit()\nif abs(a-b)%2==0:\n print(\"Negative\")\nelse:\n print(\"Positive\")",
"import sys",
"sys",
"a,b=map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"in... | import sys
a,b=map(int,input().split())
if a>=0:
print("Positive")
sys.exit()
if b>=0:
print("Zero")
sys.exit()
if abs(a-b)%2==0:
print("Negative")
else:
print("Positive") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
4,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
4,
13,
17,
14,
2,
13,
13,
4,
13,
17,
4,
13,
17,
14,
2,
2... | [
[
72,
2
],
[
72,
11
],
[
73,
14
],
[
73,
26
],
[
70,
29
],
[
73,
33
],
[
70,
36
],
[
73,
46
],
[
70,
47
],
[
73,
58
],
[
70,
59
],
[
72,
70
],
[
72,
73
]
] | [
"a,b = map(int,input().split())\n\nif a > 0:\n print(\"Positive\")\n exit(0)\n \nif (a == 0 or b == 0) or (a < 0 and b > 0):\n print(\"Zero\")\n exit(0)\n \n# only negative a,b cases left from this point on\nif (a == b):\n print(\"Negative\")\n exit(0)\n \nif (a - b) % 2 == 1:\n print(\"Positive\")\nelse:... | a,b = map(int,input().split())
if a > 0:
print("Positive")
exit(0)
if (a == 0 or b == 0) or (a < 0 and b > 0):
print("Zero")
exit(0)
# only negative a,b cases left from this point on
if (a == b):
print("Negative")
exit(0)
if (a - b) % 2 == 1:
print("Positive")
else:
print("Negative")
|
[
7,
0,
13,
4,
18,
4,
13,
13,
17,
0,
13,
4,
13,
18,
13,
17,
0,
13,
4,
13,
18,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
0,
13,
2,
2,
13,
13,
17,
14,
2,
2,
13,
17,
17,
4,
13,
... | [
[
61,
2
],
[
67,
10
],
[
62,
14
],
[
70,
17
],
[
62,
21
],
[
68,
25
],
[
68,
33
],
[
71,
36
],
[
64,
42
],
[
71,
45
],
[
68,
46
],
[
65,
51
],
[
61,
62
],
[
... | [
"line = input().split(\" \")\na = int(line[0])\nb = int(line[1])\n\nif a > 0:\n print(\"Positive\")\nelif a <= 0 and b >= 0:\n print(\"Zero\")\nelse:\n c = b - a + 1\n if c % 2 == 0:\n print(\"Positive\")\n else:\n print(\"Negative\")",
"line = input().split(\" \")",
"line",
"input().split(\" \")",... | line = input().split(" ")
a = int(line[0])
b = int(line[1])
if a > 0:
print("Positive")
elif a <= 0 and b >= 0:
print("Zero")
else:
c = b - a + 1
if c % 2 == 0:
print("Positive")
else:
print("Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
17,
13,
0,
13,
17,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
0,
13,
17,
14,
2,
13,
13,
0,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
0,
13,
17,
0,
13,
17,
4,
1... | [
[
74,
2
],
[
74,
11
],
[
75,
15
],
[
62,
17
],
[
75,
23
],
[
60,
24
],
[
75,
28
],
[
60,
29
],
[
65,
32
],
[
75,
36
],
[
60,
37
],
[
68,
39
],
[
60,
45
],
[
... | [
"a, b = map(int, input().split())\nif (0 < a):\n res = \"Positive\"\n\nelif (a * b == 0) or (a * b < 0):\n res = \"Zero\"\n\nelse:\n if a == b:\n res = \"Positive\"\n elif (b-a) % 2 == 1:\n res = \"Positive\"\n else:\n res = \"Negative\"\nprint(res)",
"a, b = map(int, input().split())",
"a",
"ma... | a, b = map(int, input().split())
if (0 < a):
res = "Positive"
elif (a * b == 0) or (a * b < 0):
res = "Zero"
else:
if a == b:
res = "Positive"
elif (b-a) % 2 == 1:
res = "Positive"
else:
res = "Negative"
print(res) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
13,
2,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
4,
13,
8,
40,
2,
2,
13,
13,
17,
17,
17,
17,
10,
4,
13,
10,
4,
13,
... | [
[
57,
2
],
[
57,
11
],
[
51,
13
],
[
55,
16
],
[
58,
18
],
[
55,
22
],
[
55,
30
],
[
58,
33
],
[
58,
44
],
[
55,
45
],
[
51,
52
],
[
57,
55
],
[
57,
58
]
] | [
"a, b = map(int, input().split())\nX = range(a, b+1)\n\nif a > 0:\n print('Positive')\nelif a < 0 and b > 0:\n print('Zero')\nelse:\n print('Positive' if (b - a) % 2 != 0 else 'Negative')",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int",
"input().split()",
... | a, b = map(int, input().split())
X = range(a, b+1)
if a > 0:
print('Positive')
elif a < 0 and b > 0:
print('Zero')
else:
print('Positive' if (b - a) % 2 != 0 else 'Negative') |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
... | [
[
92,
2
],
[
92,
11
],
[
83,
13
],
[
93,
18
],
[
90,
21
],
[
93,
28
],
[
93,
36
],
[
90,
39
],
[
90,
46
],
[
93,
54
],
[
90,
57
],
[
86,
60
],
[
90,
62
],
[
... | [
"a, b = map(int, input().split())\nans = 1\n\nif a > 0 and b > 0:\n print(\"Positive\")\nelif a == 0:\n print(\"Zero\")\nelif a < 0 and b > 0:\n print(\"Zero\")\nelif b == 0:\n print(\"Zero\")\nelif a < 0 and b < 0:\n diff = b - a\n if diff % 2 == 0:\n print(\"Negative\")\n elif diff % 2... | a, b = map(int, input().split())
ans = 1
if a > 0 and b > 0:
print("Positive")
elif a == 0:
print("Zero")
elif a < 0 and b > 0:
print("Zero")
elif b == 0:
print("Zero")
elif a < 0 and b < 0:
diff = b - a
if diff % 2 == 0:
print("Negative")
elif diff % 2 != 0:
print("Positive... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
0,
13,
17,
14,
2,
13,
17,
0,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
0,
13,
17,
0,
13,
17,
4,
13,
13,
10,
17,
13,
10,
17,
13,
10,
4,
13... | [
[
63,
2
],
[
63,
11
],
[
55,
15
],
[
64,
18
],
[
48,
21
],
[
55,
25
],
[
60,
28
],
[
64,
34
],
[
55,
35
],
[
57,
39
],
[
51,
42
],
[
52,
46
],
[
58,
46
],
[
... | [
"a, b = map(int, input().split())\nif a<=0 and b>=0:\n ans = 'Zero'\nelif a>0:\n ans = 'Positive'\nelse:\n if (b-a)%2 == 0:\n ans = 'Negative'\n else:\n ans = 'Positive'\nprint(ans)",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().s... | a, b = map(int, input().split())
if a<=0 and b>=0:
ans = 'Zero'
elif a>0:
ans = 'Positive'
else:
if (b-a)%2 == 0:
ans = 'Negative'
else:
ans = 'Positive'
print(ans) |
[
7,
15,
13,
12,
13,
12,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
2,
2,
13,
... | [
[
9,
8
],
[
69,
15
],
[
9,
17
],
[
8,
20
],
[
8,
28
],
[
17,
31
],
[
8,
39
],
[
17,
42
],
[
17,
50
],
[
17,
55
],
[
8,
56
],
[
72,
66
]
] | [
"import sys\ndef input(): return sys.stdin.readline().strip()\n\ndef resolve():\n a,b=map(int, input().split())\n if a>0:\n print('Positive')\n elif a==0 or b==0:\n print('Zero')\n elif a<0 and b>0:\n print('Zero')\n elif b<0 and (b-a)%2==0:\n print('Negative')\n else:\... | import sys
def input(): return sys.stdin.readline().strip()
def resolve():
a,b=map(int, input().split())
if a>0:
print('Positive')
elif a==0 or b==0:
print('Zero')
elif a<0 and b>0:
print('Zero')
elif b<0 and (b-a)%2==0:
print('Negative')
else:
print('Pos... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
13,
13,
13,
0,
13,
4,
13,
13,
13,
14,
40,
13,
4,
13,
13,
14,
2,
13,
4,
13,
13,
14,
2,
2,
2,
13,
13,
17,
17,
14,
2,
13,
17,
10,
4,
13,
10,
4,
13,
10,
4,
... | [
[
55,
2
],
[
55,
11
],
[
58,
13
],
[
56,
16
],
[
53,
17
],
[
49,
19
],
[
59,
22
],
[
56,
22
],
[
53,
23
],
[
59,
26
],
[
56,
26
],
[
59,
29
],
[
56,
29
],
[
... | [
"a, b = map(int,input().split())\na = min(a,b)\nb = max(a,b)\nif a != abs(a):\n if b == abs(b): print(\"Zero\")\n elif (b - a) % 2 == 0: print(\"Negative\")\n else: print(\"Positive\")\nelif a == 0: print(\"Zero\")\nelse: print(\"Positive\") ",
"a, b = map(int,input().split())",
"a",
"map(int,input().spli... | a, b = map(int,input().split())
a = min(a,b)
b = max(a,b)
if a != abs(a):
if b == abs(b): print("Zero")
elif (b - a) % 2 == 0: print("Negative")
else: print("Positive")
elif a == 0: print("Zero")
else: print("Positive") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
40,
2,
2,
2,
4,
13,
13,
4,
13,
13,
17,
17,
17,
4,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,... | [
[
80,
2
],
[
80,
11
],
[
78,
15
],
[
81,
18
],
[
78,
27
],
[
81,
30
],
[
78,
38
],
[
81,
41
],
[
78,
52
],
[
81,
55
],
[
78,
63
],
[
81,
66
],
[
80,
78
],
[
... | [
"a,b=map(int,input().split())\nif a>0 and b>0:\n print('Positive')\nelif a<0 and b<0 and (abs(a)-abs(b)+1)%2 != 0:\n print('Negative')\nelif a<0 and b<0 and (abs(a)-abs(b)+1)%2==0:\n print('Positive')\nelse:\n print('Zero')",
"a,b=map(int,input().split())",
"a",
"map(int,input().split())",
"map... | a,b=map(int,input().split())
if a>0 and b>0:
print('Positive')
elif a<0 and b<0 and (abs(a)-abs(b)+1)%2 != 0:
print('Negative')
elif a<0 and b<0 and (abs(a)-abs(b)+1)%2==0:
print('Positive')
else:
print('Zero') |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
14,
2,
2,
4,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
14,
2,
2,
2,
... | [
[
70,
2
],
[
70,
11
],
[
71,
15
],
[
68,
18
],
[
71,
25
],
[
71,
33
],
[
68,
36
],
[
71,
43
],
[
68,
56
],
[
71,
57
],
[
70,
68
],
[
70,
71
]
] | [
"a,b=map(int,input().split())\nif a<=0 and b>=0:\n print('Zero')\nelif a>0:\n print('Positive')\nelif a<0 and b>0:\n if abs(a)%2==0:\n print('Positive')\n else:\n print('Negative')\nelse:\n if (b-a)%2==0:\n print('Negative')\n else:\n print('Positive')",
"a,b=map(int,input().split())",
"a",
... | a,b=map(int,input().split())
if a<=0 and b>=0:
print('Zero')
elif a>0:
print('Positive')
elif a<0 and b>0:
if abs(a)%2==0:
print('Positive')
else:
print('Negative')
else:
if (b-a)%2==0:
print('Negative')
else:
print('Positive') |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
13,
17,
0,
13,
17,
14,
2,
13,
17,
0,
13,
17,
0,
13,
8,
2,
2,
2,
2,
13,
13,
17,
17,
17,
17,
17,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
17,
13,
10,
8,
... | [
[
58,
2
],
[
58,
11
],
[
47,
15
],
[
59,
16
],
[
52,
19
],
[
47,
23
],
[
49,
26
],
[
55,
29
],
[
59,
35
],
[
47,
36
],
[
56,
44
],
[
50,
44
],
[
53,
44
],
[
... | [
"a, b = map(int, input().split())\n\nif a*b < 1:\n ans = \"Zero\"\nelif a > 0:\n ans = \"Positive\"\nelse:\n ans = \"Positive\" if (b-a+1) % 2 == 0 else \"Negative\"\n\nprint(ans)",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().spli... | a, b = map(int, input().split())
if a*b < 1:
ans = "Zero"
elif a > 0:
ans = "Positive"
else:
ans = "Positive" if (b-a+1) % 2 == 0 else "Negative"
print(ans)
|
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
40,
40,
13,
17,
13,
4,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
4,
13,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
49,
2
],
[
49,
11
],
[
47,
15
],
[
50,
17
],
[
47,
25
],
[
50,
28
],
[
50,
35
],
[
47,
36
],
[
49,
47
],
[
49,
50
]
] | [
"a,b = map(int, input().split())\n\nif a <= 0 <= b:\n print(\"Zero\")\nelif (a>0 and b>0) or (abs(b-a)%2==1):\n print(\"Positive\")\nelse:\n print(\"Negative\")",
"a,b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input... | a,b = map(int, input().split())
if a <= 0 <= b:
print("Zero")
elif (a>0 and b>0) or (abs(b-a)%2==1):
print("Positive")
else:
print("Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
4,
13,
17,
4,
13,
8,
2,
2,
13,
13,
17,
17,
17,
10,
4,
13,
10,
4,
13
] | [
[
44,
2
],
[
44,
11
],
[
42,
14
],
[
42,
22
],
[
45,
25
],
[
45,
35
],
[
42,
36
],
[
44,
42
],
[
44,
45
]
] | [
"a,b=map(int,input().split())\nif a>0:\n print(\"Positive\")\nelif a<0 and b>0:\n print(\"Zero\")\nelse:\n print(\"Positive\" if (b-a)%2 else \"Negative\")",
"a,b=map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"spl... | a,b=map(int,input().split())
if a>0:
print("Positive")
elif a<0 and b>0:
print("Zero")
else:
print("Positive" if (b-a)%2 else "Negative") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
17,
14,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
0,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
2,
13,
17,
2,
... | [
[
101,
2
],
[
101,
11
],
[
95,
13
],
[
102,
20
],
[
93,
25
],
[
102,
31
],
[
93,
36
],
[
98,
40
],
[
102,
46
],
[
93,
49
],
[
102,
54
],
[
93,
57
],
[
99,
60
],
... | [
"a,b=map(int,input().split())\nnum=0\n\nif a%2==0 and b%2==1 or a%2==1 and b%2==0:\n num=1\n \nif a>0 and b>0 or a<0 and b<0 and num==1:\n print(\"Positive\")\n \nelif a<0 and b<0 and num==0 or a<0 and b<0:\n print(\"Negative\")\n \nelse:\n print(\"Zero\")",
"a,b=map(int,input().split())",
"a",
"map(in... | a,b=map(int,input().split())
num=0
if a%2==0 and b%2==1 or a%2==1 and b%2==0:
num=1
if a>0 and b>0 or a<0 and b<0 and num==1:
print("Positive")
elif a<0 and b<0 and num==0 or a<0 and b<0:
print("Negative")
else:
print("Zero") |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
2,
2,
4,
13,
17,
13,
4,
13,
17,
13,
17,
14,
40,
40,
13,
17,
13,
4,
13,
17,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13,
10,
2,
13
] | [
[
50,
2
],
[
50,
11
],
[
53,
13
],
[
48,
19
],
[
51,
23
],
[
51,
28
],
[
48,
30
],
[
54,
37
],
[
50,
48
],
[
50,
51
],
[
53,
54
]
] | [
"a, b = map(int, input().split())\n\n# p = max(1, b) - max(1, a) + 1\nn = min(-1, b) - min(0, a) + 1\n\nif a <= 0 <= b:\n print(\"Zero\")\nelif n % 2 == 0:\n print(\"Positive\")\nelse:\n print(\"Negative\")",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int",
"i... | a, b = map(int, input().split())
# p = max(1, b) - max(1, a) + 1
n = min(-1, b) - min(0, a) + 1
if a <= 0 <= b:
print("Zero")
elif n % 2 == 0:
print("Positive")
else:
print("Negative")
|
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
17,
13,
0,
13,
17,
14,
2,
13,
17,
0,
13,
8,
2,
2,
2,
13,
13,
17,
17,
17,
17,
0,
13,
17,
4,
13,
13,
10,
17,
13,
10,
8,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13
] | [
[
54,
2
],
[
54,
11
],
[
55,
15
],
[
42,
17
],
[
49,
21
],
[
45,
24
],
[
49,
29
],
[
55,
30
],
[
51,
36
],
[
52,
40
],
[
46,
40
],
[
43,
40
],
[
42,
43
],
[
... | [
"a,b = map(int,input().split())\nif 0<a:\n ans = 'Positive'\nelif b<0:\n ans = 'Positive' if (b-a)%2==1 else 'Negative'\nelse:\n ans = 'Zero'\nprint(ans)",
"a,b = map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"spl... | a,b = map(int,input().split())
if 0<a:
ans = 'Positive'
elif b<0:
ans = 'Positive' if (b-a)%2==1 else 'Negative'
else:
ans = 'Zero'
print(ans) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
14,
2,
2,
2,
4,
13,
13,
13,
4,
13,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
14,
40,
2,
13,
13,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
... | [
[
56,
2
],
[
56,
11
],
[
54,
15
],
[
57,
18
],
[
54,
26
],
[
57,
27
],
[
54,
30
],
[
57,
31
],
[
54,
43
],
[
57,
44
],
[
56,
54
],
[
56,
57
]
] | [
"a, b = map(int, input().split())\nif a < 0 and b < 0:\n if (max(a, b) - min(a, b) + 1) % 2:\n print('Negative')\n else:\n print('Positive')\nelse:\n if a * b <= 0:\n print(\"Zero\")\n else:\n print('Positive')",
"a, b = map(int, input().split())",
"a",
"map(int, input(... | a, b = map(int, input().split())
if a < 0 and b < 0:
if (max(a, b) - min(a, b) + 1) % 2:
print('Negative')
else:
print('Positive')
else:
if a * b <= 0:
print("Zero")
else:
print('Positive')
|
[
7,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
13,
17,
10,
13,
13,
10,
13... | [
[
4,
3
],
[
3,
12
],
[
55,
14
],
[
55,
16
],
[
53,
19
],
[
53,
27
],
[
56,
30
],
[
56,
40
],
[
53,
41
],
[
55,
53
],
[
55,
56
]
] | [
"a, b = (int(x) for x in input().split())\nif a > 0:\n print('Positive')\nelif a <= 0 and b >= 0:\n print('Zero')\nelse:\n if (b - a + 1) % 2 == 0:\n print('Positive')\n else:\n print('Negative')",
"int(x) for x in input().split()",
"for x in input().split()",
"x",
"input().split()... | a, b = (int(x) for x in input().split())
if a > 0:
print('Positive')
elif a <= 0 and b >= 0:
print('Zero')
else:
if (b - a + 1) % 2 == 0:
print('Positive')
else:
print('Negative') |
[
7,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
14,
40,
2,
13,
13,
17,
4,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
2,
2,
13,
13,
17,
17,
4,
13,
17,
4,
13,
17,
10,
13,
13,
10,
13,
13
] | [
[
4,
3
],
[
3,
12
],
[
51,
14
],
[
51,
16
],
[
49,
20
],
[
52,
21
],
[
49,
28
],
[
49,
37
],
[
52,
38
],
[
51,
49
],
[
51,
52
]
] | [
"a, b = [int(w) for w in input().split()]\n\nif a * b <= 0:\n print(\"Zero\")\nelif a > 0:\n print(\"Positive\")\nelse:\n if (a - b) % 2 == 0:\n print(\"Negative\")\n else:\n print(\"Positive\")",
"int(w) for w in input().split()",
"for w in input().split()",
"w",
"input().split()"... | a, b = [int(w) for w in input().split()]
if a * b <= 0:
print("Zero")
elif a > 0:
print("Positive")
else:
if (a - b) % 2 == 0:
print("Negative")
else:
print("Positive")
|
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
2,
2,
4,
13,
40,
13,
17,
4,
13,
2,
40,
13,
17,
17,
17,
17,
4,
13,
17,
4,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
51,
2
],
[
51,
11
],
[
49,
15
],
[
52,
18
],
[
49,
30
],
[
52,
36
],
[
51,
49
],
[
51,
52
]
] | [
"# A - Range Product\na,b = map(int,input().split())\nif a<=0 and b>=0:\n print('Zero')\nelif (max(-a,0)-max(-b-1,0))%2==0:\n print('Positive')\nelse:\n print('Negative')",
"a,b = map(int,input().split())",
"a",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
... | # A - Range Product
a,b = map(int,input().split())
if a<=0 and b>=0:
print('Zero')
elif (max(-a,0)-max(-b-1,0))%2==0:
print('Positive')
else:
print('Negative') |
[
7,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
14,
2,
13,
17,
4,
13,
17,
14,
2,
13,
17,
14,
2,
2,
2,
2,
13,
13,
17,
17,
17,
4,
13,
17,
4,
13,
17,
14,
40,
40,
13,
17,
13,
4,
13,
17,
10,
13,
13... | [
[
4,
3
],
[
3,
12
],
[
57,
14
],
[
57,
16
],
[
55,
19
],
[
58,
26
],
[
58,
33
],
[
55,
34
],
[
55,
47
],
[
58,
49
],
[
57,
55
],
[
57,
58
]
] | [
"# AGC 002: A – Range Product\na, b = [int(s) for s in input().split()]\n\nif a > 0:\n print('Positive')\nelif b < 0:\n if (b - a + 1) % 2 == 0:\n print('Positive')\n else:\n print('Negative')\nelif a <= 0 <= b:\n print('Zero')",
"int(s) for s in input().split()",
"for s in input().spl... | # AGC 002: A – Range Product
a, b = [int(s) for s in input().split()]
if a > 0:
print('Positive')
elif b < 0:
if (b - a + 1) % 2 == 0:
print('Positive')
else:
print('Negative')
elif a <= 0 <= b:
print('Zero') |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
40,
40,
13,
17,
13,
4,
13,
17,
14,
40,
2,
17,
13,
13,
4,
13,
17,
14,
2,
2,
13,
17,
2,
17,
13,
14,
2,
2,
13,
17,
17,
4,
13,
17,
4,
13,
17,
14,
2,
2,
2,
13,
13,
... | [
[
68,
2
],
[
68,
11
],
[
69,
15
],
[
66,
17
],
[
69,
25
],
[
66,
26
],
[
69,
33
],
[
66,
37
],
[
69,
41
],
[
66,
54
],
[
69,
55
],
[
68,
66
],
[
68,
69
]
] | [
"a, b = map(int, input().split())\n\nif a <= 0 <= b:\n print(\"Zero\")\nelif 0 < a <= b:\n print(\"Positive\")\nelif a < 0 and 0 < b:\n if a % 2 == 0:\n print(\"Positive\")\n else:\n print(\"Negative\")\nelse:\n if (b - a) % 2 == 0:\n print(\"Negative\")\n else:\n print... | a, b = map(int, input().split())
if a <= 0 <= b:
print("Zero")
elif 0 < a <= b:
print("Positive")
elif a < 0 and 0 < b:
if a % 2 == 0:
print("Positive")
else:
print("Negative")
else:
if (b - a) % 2 == 0:
print("Negative")
else:
print("Positive")
|
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
2,
40,
13,
17,
40,
13,
17,
2,
40,
13,
17,
40,
13,
17,
4,
13,
17,
14,
2,
13,
17,
4,
13,
17,
14,
2,
13,
17,
8,
2,
2,
2,
4,
13,
2,
13,
13,
17,
17,
17,
4,
13,
... | [
[
64,
2
],
[
64,
11
],
[
62,
16
],
[
65,
19
],
[
62,
23
],
[
65,
26
],
[
62,
33
],
[
65,
40
],
[
65,
49
],
[
62,
50
],
[
64,
62
],
[
64,
65
]
] | [
"a, b = map(int, input().split())\nif (a <= 0 and b >= 0) or (a >= 0 and b <= 0):\n print(\"Zero\")\nelif a > 0:\n print(\"Positive\")\nelif b < 0:\n print(\"Negative\") if (abs(b-a)+1) % 2 == 1 else print(\"Positive\")",
"a, b = map(int, input().split())",
"a",
"map(int, input().split())",
"map",
"int... | a, b = map(int, input().split())
if (a <= 0 and b >= 0) or (a >= 0 and b <= 0):
print("Zero")
elif a > 0:
print("Positive")
elif b < 0:
print("Negative") if (abs(b-a)+1) % 2 == 1 else print("Positive") |
[
7,
15,
13,
13,
13,
15,
15,
15,
15,
15,
15,
15,
12,
13,
12,
13,
12,
13,
12,
13,
12,
13,
12,
13,
4,
18,
13,
13,
2,
17,
17,
0,
13,
4,
13,
17,
0,
13,
2,
2,
17,
17,
17,
0,
13,
4,
13,
13,
41,
28,
13,
4,
13,
13,
4,
... | [
[
170,
32
],
[
164,
37
],
[
155,
44
],
[
150,
46
],
[
155,
47
],
[
51,
50
],
[
156,
53
],
[
186,
56
],
[
158,
58
],
[
176,
61
],
[
153,
65
],
[
179,
67
],
[
153,
71... | [
"import sys, re, os\nfrom collections import deque, defaultdict, Counter\nfrom math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians\nfrom itertools import permutations, combinations, product, accumulate\nfrom operator import itemgetter, mul\nfrom copy import deepcopy\nfrom string import ascii_lowercase, ... | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_upper... |
[
7,
12,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
2,
39,
17,
2,
39,
17,
13,
0,
13,
2,
39,
17,
2,
13,
17,
0,
18,
13,
17,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
18,
13,
13,
... | [
[
5,
4
],
[
5,
13
],
[
16,
15
],
[
4,
22
],
[
25,
24
],
[
4,
29
],
[
35,
32
],
[
24,
33
],
[
38,
37
],
[
13,
40
],
[
43,
42
],
[
43,
51
],
[
56,
53
],
[
15,... | [
"def main():\n N,M = map(int,(input().split()))\n BOX = [0]+[1]*N\n RED = [False]*(N+1)\n RED[1] = True\n\n for _ in range(M):\n x,y = map(int,(input().split()))\n BOX[x] -=1\n BOX[y] +=1\n if RED[x]:\n RED[y]=True\n if BOX[x]==0:\n RED[x]=Fal... | def main():
N,M = map(int,(input().split()))
BOX = [0]+[1]*N
RED = [False]*(N+1)
RED[1] = True
for _ in range(M):
x,y = map(int,(input().split()))
BOX[x] -=1
BOX[y] +=1
if RED[x]:
RED[y]=True
if BOX[x]==0:
RED[x]=False
cnt = 0
... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
2,
39,
17,
13,
0,
13,
4,
13,
4,
18,
13,
13,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
18,
13,
2,
13,
17,
17,
0,
18,
13,
2,
13,
17,
... | [
[
112,
2
],
[
112,
11
],
[
103,
13
],
[
98,
17
],
[
106,
19
],
[
107,
24
],
[
29,
28
],
[
113,
31
],
[
109,
33
],
[
109,
42
],
[
49,
44
],
[
104,
45
],
[
110,
47
... | [
"n,m = map(int,input().split())\nl = [1] * n\nd = set()\nd.add(1)\n\nfor i in range(m):\n x,y = map(int,input().split())\n l[x-1] -= 1\n l[y-1] += 1\n if(x in d):\n d.add(y)\n if(l[x-1] == 0):\n d.remove(x)\n\ns = 0\nfor i in d:\n if(l[i-1] != 0):s += 1\nprint(s)",
"n,m = m... | n,m = map(int,input().split())
l = [1] * n
d = set()
d.add(1)
for i in range(m):
x,y = map(int,input().split())
l[x-1] -= 1
l[y-1] += 1
if(x in d):
d.add(y)
if(l[x-1] == 0):
d.remove(x)
s = 0
for i in d:
if(l[i-1] != 0):s += 1
print(s)
|
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
17,
0,
18,
13,
17,
17,
0,
13,
2,
39,
17,
2,
13,
17,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
13,
13,
0,
18,
13,
13,
17,
... | [
[
122,
2
],
[
122,
11
],
[
125,
13
],
[
19,
16
],
[
126,
17
],
[
128,
21
],
[
120,
26
],
[
137,
29
],
[
33,
32
],
[
123,
35
],
[
131,
37
],
[
131,
46
],
[
117,
49
... | [
"N, M = map(int, input().split())\nkouho = {}\nkouho[1]=True\nNlist = [1]*(N+1)\nans = 0\nfor i in range(M):\n x, y = map(int, input().split())\n if x in kouho:\n kouho[y] = True\n Nlist[x] -= 1\n Nlist[y] += 1\n else:\n Nlist[x] -= 1\n Nlist[y] += 1\n if Nlist[x]==0:\... | N, M = map(int, input().split())
kouho = {}
kouho[1]=True
Nlist = [1]*(N+1)
ans = 0
for i in range(M):
x, y = map(int, input().split())
if x in kouho:
kouho[y] = True
Nlist[x] -= 1
Nlist[y] += 1
else:
Nlist[x] -= 1
Nlist[y] += 1
if Nlist[x]==0:
if x in kou... |
[
7,
15,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
4,
18,
13,
13,
2,
39,
17,
13,
0,
13,
4,
18,
13,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
12,
2,
4,
13,
13,
17,
23,
4,
... | [
[
122,
4
],
[
122,
13
],
[
125,
15
],
[
120,
23
],
[
110,
25
],
[
120,
33
],
[
38,
35
],
[
111,
36
],
[
41,
40
],
[
123,
43
],
[
128,
45
],
[
128,
60
],
[
65,
62
... | [
"import numpy as np\n\nN, M = map(int,input().split())\n\nbox = np.array([1]*N)#個数\npos = np.array([0]*N)#ありえるか\npos[0] = 1\n\nfor i in range(M):\n x, y = map(lambda x:int(x)-1,input().split())\n box[x] -= 1\n box[y] += 1\n if pos[x]:\n pos[y] = 1\n if box[x] == 0:\n pos[x] = 0\... | import numpy as np
N, M = map(int,input().split())
box = np.array([1]*N)#個数
pos = np.array([0]*N)#ありえるか
pos[0] = 1
for i in range(M):
x, y = map(lambda x:int(x)-1,input().split())
box[x] -= 1
box[y] += 1
if pos[x]:
pos[y] = 1
if box[x] == 0:
pos[x] = 0
#print(box)
#print(... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
41,
28,
13,
4,
13,
13,
4,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
39,
17,
17,
0,
13,
13,
0,
18,
18,
13,
17,
17,
17,
28,
13,... | [
[
113,
2
],
[
113,
11
],
[
15,
14
],
[
111,
17
],
[
119,
30
],
[
35,
34
],
[
114,
38
],
[
116,
45
],
[
53,
48
],
[
117,
50
],
[
64,
59
],
[
117,
61
],
[
71,
66
],... | [
"# B - Box and Ball\nN,M = map(int,input().split())\nmove = [list(map(int,input().split())) for _ in range(M)]\nbox = [[1,0] for _ in range(N+1)]\nbox[1][1] = 1\nfor x,y in move:\n box[x][0] -= 1\n box[y][0] += 1\n if box[x][1]==1:\n box[y][1] = 1\n if box[x][0]==0:\n box[x][1] = 0... | # B - Box and Ball
N,M = map(int,input().split())
move = [list(map(int,input().split())) for _ in range(M)]
box = [[1,0] for _ in range(N+1)]
box[1][1] = 1
for x,y in move:
box[x][0] -= 1
box[y][0] += 1
if box[x][1]==1:
box[y][1] = 1
if box[x][0]==0:
box[x][1] = 0
print(sum(b[1] ... |
[
7,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
0,
13,
2,
39,
17,
13,
0,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
28,
13,
4,
13,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
14,... | [
[
4,
3
],
[
3,
12
],
[
99,
14
],
[
99,
16
],
[
102,
18
],
[
94,
22
],
[
108,
24
],
[
94,
28
],
[
33,
30
],
[
103,
31
],
[
36,
35
],
[
100,
38
],
[
42,
41
],
[
... | [
"n, m = [int(i) for i in input().split()]\ndata = [0] * n\ncnt = [1] * n\ndata[0] = 1\nfor i in range(m):\n x, y = [int(i) for i in input().split()]\n if data[x-1] == 1: data[y-1] = 1\n if cnt[x-1] == 1: data[x-1] = 0\n cnt[x-1] -= 1\n cnt[y-1] += 1\nprint(data.count(1))",
"int(i) for i in input().... | n, m = [int(i) for i in input().split()]
data = [0] * n
cnt = [1] * n
data[0] = 1
for i in range(m):
x, y = [int(i) for i in input().split()]
if data[x-1] == 1: data[y-1] = 1
if cnt[x-1] == 1: data[x-1] = 0
cnt[x-1] -= 1
cnt[y-1] += 1
print(data.count(1)) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
41,
28,
13,
4,
13,
13,
4,
17,
0,
13,
13,
41,
28,
13,
4,
13,
13,
4,
17,
0,
13,
13,
0,
18,
13,
17,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
... | [
[
128,
2
],
[
128,
11
],
[
15,
14
],
[
123,
17
],
[
131,
21
],
[
26,
25
],
[
123,
28
],
[
137,
32
],
[
38,
35
],
[
138,
36
],
[
41,
40
],
[
129,
43
],
[
140,
45
]... | [
"N, M = map(int, input().split())\n\nnum = [1 for i in range(N)]\nred = [False for i in range(N)]\nred[0] = True\n\nfor i in range(M):\n x, y = map(int, input().split()) \n x -= 1\n y -= 1\n \n if(red[x] and num[x] >= 1):\n red[y] = True\n num[x] -= 1\n num[y] += 1\n if... | N, M = map(int, input().split())
num = [1 for i in range(N)]
red = [False for i in range(N)]
red[0] = True
for i in range(M):
x, y = map(int, input().split())
x -= 1
y -= 1
if(red[x] and num[x] >= 1):
red[y] = True
num[x] -= 1
num[y] += 1
if(num[x] <= 0):
... |
[
7,
15,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
39,
28,
13,
4,
13,
13,
4,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
2,
39,
17,
13,
0,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
28,
13,
4,
... | [
[
135,
4
],
[
135,
13
],
[
138,
15
],
[
19,
18
],
[
136,
21
],
[
139,
24
],
[
126,
37
],
[
133,
41
],
[
144,
43
],
[
133,
47
],
[
52,
49
],
[
145,
50
],
[
55,
54
... | [
"import sys\n\nN,M=map(int,input().split())\nope=[]\nfor i in range(M):\n ope.append(tuple(map(int,input().split())))\n\nstate=[1]*N\nred=[0]*N\nred[0]=1\nfor i in range(M):\n x,y=ope[i]\n if red[x-1]:\n if state[x-1]>1:\n red[x-1]=1\n red[y-1]=1\n else:\n red... | import sys
N,M=map(int,input().split())
ope=[]
for i in range(M):
ope.append(tuple(map(int,input().split())))
state=[1]*N
red=[0]*N
red[0]=1
for i in range(M):
x,y=ope[i]
if red[x-1]:
if state[x-1]>1:
red[x-1]=1
red[y-1]=1
else:
red[x-1]=0
re... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
41,
28,
13,
4,
13,
13,
4,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
13,
0,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
0,
13,
2,
39,
17,
13,
28,
13,
13,
13,
0,
13,
2,
... | [
[
114,
2
],
[
114,
11
],
[
15,
14
],
[
115,
17
],
[
117,
30
],
[
111,
33
],
[
109,
37
],
[
42,
39
],
[
112,
40
],
[
105,
44
],
[
109,
48
],
[
102,
54
],
[
103,
56
... | [
"N, M = map(int, input().split())\nXY = [list(map(int, input().split())) for _ in range(M)]\n\nstatus = [False]*N\nstatus[0] = True\nball = [1]*N\n\nfor x, y in XY:\n x, y = x-1, y-1\n ball[x] -= 1\n ball[y] += 1\n if status[x]:\n status[y] = True\n if status[x] and ball[x] == 0:\n status[x] = False\n\np... | N, M = map(int, input().split())
XY = [list(map(int, input().split())) for _ in range(M)]
status = [False]*N
status[0] = True
ball = [1]*N
for x, y in XY:
x, y = x-1, y-1
ball[x] -= 1
ball[y] += 1
if status[x]:
status[y] = True
if status[x] and ball[x] == 0:
status[x] = False
print(sum(status)) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
17,
0,
13,
13,
41,
28,
13,
4,
13,
2,
13,
17,
4,
17,
0,
13,
13,
0,
18,
13,
17,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
... | [
[
115,
2
],
[
115,
11
],
[
15,
14
],
[
104,
18
],
[
112,
23
],
[
28,
27
],
[
104,
31
],
[
109,
36
],
[
42,
39
],
[
110,
40
],
[
45,
44
],
[
116,
47
],
[
118,
49
]... | [
"n, m = map(int, input().split())\nchecker = [1 for _i in range(n+1)]\nr = [0 for i in range(n+1)]\nr[1] = 1\nfor _i in range(m):\n x, y = map(int, input().split())\n checker[x] -= 1\n checker[y] += 1\n if r[x]>0:\n r[y] = 1\n if (r[x]>0) and (checker[x]==0):\n r[x] = 0\nprint(sum(r))",... | n, m = map(int, input().split())
checker = [1 for _i in range(n+1)]
r = [0 for i in range(n+1)]
r[1] = 1
for _i in range(m):
x, y = map(int, input().split())
checker[x] -= 1
checker[y] += 1
if r[x]>0:
r[y] = 1
if (r[x]>0) and (checker[x]==0):
r[x] = 0
print(sum(r)) |
[
7,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
13,
0,
13,
39,
28,
13,
4,
13,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
4,
18,
13,
13,
13,
0,
13,
2,
39,
17,
2,
13,
17,
0,
13,
2,
39,
17,
2,
... | [
[
4,
3
],
[
3,
12
],
[
162,
14
],
[
162,
16
],
[
156,
18
],
[
22,
21
],
[
148,
24
],
[
28,
27
],
[
27,
36
],
[
157,
39
],
[
159,
43
],
[
163,
48
],
[
165,
51
],
... | [
"n,m = [int(x) for x in input().split()]\nx = []\nfor i in range(m):\n x.append([int(x) for x in input().split()])\ncount = [1] * (n+1)\nflag = [0] * (n+1)\nflag[1] = 1\nfor i in range(m):\n if flag[x[i][0]] == 1:\n flag[x[i][1]] = 1\n if count[x[i][0]] == 1:\n flag[x[i][0]] = 0\n count[x[i][0]] -= 1\n c... | n,m = [int(x) for x in input().split()]
x = []
for i in range(m):
x.append([int(x) for x in input().split()])
count = [1] * (n+1)
flag = [0] * (n+1)
flag[1] = 1
for i in range(m):
if flag[x[i][0]] == 1:
flag[x[i][1]] = 1
if count[x[i][0]] == 1:
flag[x[i][0]] = 0
count[x[i][0]] -= 1
count[x[i][1]] += 1... |
[
7,
17,
12,
13,
0,
13,
17,
0,
13,
2,
39,
17,
13,
28,
13,
13,
4,
13,
13,
13,
14,
2,
2,
13,
17,
13,
14,
2,
18,
13,
2,
13,
17,
17,
4,
18,
13,
13,
2,
13,
17,
4,
18,
13,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
17,
0... | [
[
6,
5
],
[
9,
8
],
[
67,
12
],
[
71,
18
],
[
73,
19
],
[
5,
25
],
[
8,
29
],
[
5,
36
],
[
5,
43
],
[
54,
49
],
[
8,
50
],
[
61,
56
],
[
8,
57
],
[
5,
6... | [
"'''\nAccepted :No\ndifficult : \nペナルティ :5分\n実際の回答時間 :分\nWAの回数 :回\n合計時間 :分\n'''\n\ndef myAnswer(N:int,M:int,X:list,Y:list) -> int:\n ans = {0}\n box = [1] * N\n for x,y in zip(X,Y):\n if(x-1 in ans):\n if(box[x - 1]==1):\n ans.remove(x-1)\n ans.add(y-1)\n ... | '''
Accepted :No
difficult :
ペナルティ :5分
実際の回答時間 :分
WAの回数 :回
合計時間 :分
'''
def myAnswer(N:int,M:int,X:list,Y:list) -> int:
ans = {0}
box = [1] * N
for x,y in zip(X,Y):
if(x-1 in ans):
if(box[x - 1]==1):
ans.remove(x-1)
ans.add(y-1)
box[x-1] -= 1
... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
17,
13,
0,
13,
2,
39,
17,
13,
0,
13,
2,
39,
17,
2,
39,
17,
2,
13,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
12,
2,
4,
13,
13,
17,
23,
4,
18,
4,
13,
13,
17,
13,
0,
18,
13,
... | [
[
113,
2
],
[
113,
12
],
[
116,
14
],
[
114,
18
],
[
104,
20
],
[
114,
28
],
[
32,
31
],
[
111,
34
],
[
107,
36
],
[
107,
52
],
[
57,
54
],
[
117,
55
],
[
102,
56
... | [
"N,M=map(int,input().split(' '))\nB = [1]*N\nR = [1]+[0]*(N-1)\nfor i in range(M):\n x,y=map(lambda x:int(x)-1,input().split(' '))\n B[x]-=1\n B[y]+=1\n if R[x] and B[x]:\n R[y]=1\n elif R[x] and not B[x]:\n R[x]=0\n R[y]=1\nprint(sum(R))",
"N,M=map(int,input().split(' '))",
... | N,M=map(int,input().split(' '))
B = [1]*N
R = [1]+[0]*(N-1)
for i in range(M):
x,y=map(lambda x:int(x)-1,input().split(' '))
B[x]-=1
B[y]+=1
if R[x] and B[x]:
R[y]=1
elif R[x] and not B[x]:
R[x]=0
R[y]=1
print(sum(R)) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
2,
39,
17,
13,
0,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
12,
2,
4,
13,
13,
17,
23,
4,
18,
4,
13,
13,
13,
0,
18,
13,
13,
18,
... | [
[
119,
2
],
[
119,
11
],
[
116,
13
],
[
114,
17
],
[
122,
19
],
[
114,
23
],
[
28,
25
],
[
117,
26
],
[
31,
30
],
[
120,
33
],
[
107,
35
],
[
107,
50
],
[
55,
52
... | [
"N,M=map(int,input().split())\nRed=[False]*N\nCnt=[1]*N\nRed[0]=True\nfor i in range(M):\n x,y=map(lambda x:int(x)-1,input().split())\n Red[y]|=Red[x]\n Cnt[y]+=1\n Cnt[x]-=1\n if Cnt[x]==0:\n Red[x]=False\nans=0\nfor i in range(N):\n if Red[i] and Cnt[i]>0:\n ans+=1\nprint(ans)",
... | N,M=map(int,input().split())
Red=[False]*N
Cnt=[1]*N
Red[0]=True
for i in range(M):
x,y=map(lambda x:int(x)-1,input().split())
Red[y]|=Red[x]
Cnt[y]+=1
Cnt[x]-=1
if Cnt[x]==0:
Red[x]=False
ans=0
for i in range(N):
if Red[i] and Cnt[i]>0:
ans+=1
print(ans) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
2,
39,
17,
13,
13,
2,
39,
17,
13,
0,
13,
2,
39,
17,
13,
41,
28,
13,
4,
13,
13,
4,
17,
0,
13,
13,
0,
18,
13,
17,
17,
28,
13,
4,
13,
13,
0,
18,
13,
13,
4,
13,... | [
[
312,
2
],
[
312,
11
],
[
315,
13
],
[
301,
17
],
[
309,
18
],
[
301,
22
],
[
318,
24
],
[
313,
28
],
[
32,
31
],
[
313,
34
],
[
297,
38
],
[
44,
41
],
[
298,
42
... | [
"n,m=map(int,input().split())\nx,y=[0]*m,[0]*m\nres=[1]*n\nred=[0 for i in range(n)]\nred[0]=1\nfor i in range(m):\n x[i],y[i]=map(int,input().split())\n if red[x[i]-1]==0 and red[y[i]-1]==0:\n res[x[i]-1]-=1\n res[y[i]-1]+=1\n elif red[x[i]-1]>0 and red[y[i]-1]==0:\n res[x[i]-1]-=1\n ... | n,m=map(int,input().split())
x,y=[0]*m,[0]*m
res=[1]*n
red=[0 for i in range(n)]
red[0]=1
for i in range(m):
x[i],y[i]=map(int,input().split())
if red[x[i]-1]==0 and red[y[i]-1]==0:
res[x[i]-1]-=1
res[y[i]-1]+=1
elif red[x[i]-1]>0 and red[y[i]-1]==0:
res[x[i]-1]-=1
red[x[i]-1... |
[
7,
41,
28,
13,
4,
13,
17,
4,
4,
13,
13,
4,
18,
13,
13,
0,
39,
13,
13,
13,
31,
13,
0,
13,
2,
39,
17,
13,
0,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
28,
13,
13,
13,
0,
13,
17,
0,
13,
17,
0,
18,
13,
13,
17,
0,
1... | [
[
4,
3
],
[
3,
13
],
[
19,
16
],
[
19,
20
],
[
88,
23
],
[
94,
29
],
[
38,
35
],
[
95,
36
],
[
85,
44
],
[
91,
47
],
[
53,
50
],
[
89,
51
],
[
86,
52
],
[
5... | [
"(N, M), *AB = [map(int, s.split()) for s in open(0)]\ncnt = [1] * N\npossibly_red = [False] * N\npossibly_red[0] = True\nfor a, b in AB:\n a -= 1\n b -= 1\n cnt[a] -= 1\n cnt[b] += 1\n if possibly_red[a]:\n possibly_red[b] = True\n if cnt[a] == 0:\n possibly_red[a] = False\n... | (N, M), *AB = [map(int, s.split()) for s in open(0)]
cnt = [1] * N
possibly_red = [False] * N
possibly_red[0] = True
for a, b in AB:
a -= 1
b -= 1
cnt[a] -= 1
cnt[b] += 1
if possibly_red[a]:
possibly_red[b] = True
if cnt[a] == 0:
possibly_red[a] = False
print(sum(possibly... |
[
7,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
13,
15,
13,
4,
18,
13,
13,
2,
17,
17,
12,
13,
12,
13,
12,
13,
12,
13,
0,
13,
4,
13,
13,
0,
13,
39,
28,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
18,
13,
13,
39,
2,
13,... | [
[
246,
31
],
[
241,
33
],
[
246,
34
],
[
228,
36
],
[
40,
39
],
[
238,
42
],
[
255,
44
],
[
241,
46
],
[
255,
47
],
[
229,
50
],
[
256,
54
],
[
232,
57
],
[
249,
60... | [
"from math import ceil,floor,factorial,gcd,sqrt,log2,cos,sin,tan,acos,asin,atan,degrees,radians,pi,inf,comb\nfrom itertools import accumulate,groupby,permutations,combinations,product,combinations_with_replacement\nfrom collections import deque,defaultdict,Counter\nfrom bisect import bisect_left,bisect_right\nfrom ... | from math import ceil,floor,factorial,gcd,sqrt,log2,cos,sin,tan,acos,asin,atan,degrees,radians,pi,inf,comb
from itertools import accumulate,groupby,permutations,combinations,product,combinations_with_replacement
from collections import deque,defaultdict,Counter
from bisect import bisect_left,bisect_right
from operator ... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
0,
13,
2,
39,
17,
13,
28,
13,
4,
13,
13,
0,
13,
4,
13,
12,
2,
4,
13,
13,
17,
23,
4,
18,
4,
13,
13,
13,
0,
18,
13,
13,
2,
... | [
[
98,
2
],
[
98,
11
],
[
95,
13
],
[
99,
17
],
[
22,
19
],
[
96,
20
],
[
101,
24
],
[
99,
28
],
[
31,
30
],
[
93,
33
],
[
104,
35
],
[
104,
50
],
[
55,
52
],
[
... | [
"N,M = map(int,input().split())\n\ndp = [False]*N\ndp[0] = True\ncnt = [1]*N\n\nfor _ in range(M):\n x,y = map(lambda x:int(x)-1,input().split())\n dp[y] = dp[y] or dp[x]\n cnt[y] += 1\n cnt[x] -= 1\n if cnt[x] == 0:\n dp[x] = False\n\nprint(sum(dp))",
"N,M = map(int,input().split())",
"N"... | N,M = map(int,input().split())
dp = [False]*N
dp[0] = True
cnt = [1]*N
for _ in range(M):
x,y = map(lambda x:int(x)-1,input().split())
dp[y] = dp[y] or dp[x]
cnt[y] += 1
cnt[x] -= 1
if cnt[x] == 0:
dp[x] = False
print(sum(dp))
|
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
41,
28,
13,
4,
13,
13,
4,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
13,
0,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
0,
13,
2,
39,
17,
13,
28,
13,
13,
13,
0,
13,
17,
... | [
[
117,
2
],
[
117,
11
],
[
15,
14
],
[
118,
17
],
[
126,
30
],
[
132,
33
],
[
115,
37
],
[
42,
39
],
[
133,
40
],
[
111,
44
],
[
115,
48
],
[
108,
54
],
[
120,
57
... | [
"n, m = map(int, input().split())\nmat = [list(map(int, input().split())) for _ in range(m)]\n\nred = [False]*n\nred[0] = True\nballs = [1]*n\n\nfor x, y in mat:\n x -= 1\n y -= 1\n if red[x] is True:\n red[y] = True\n balls[x] -= 1\n balls[y] += 1\n if balls[x] == 0:\n red[x] = Fals... | n, m = map(int, input().split())
mat = [list(map(int, input().split())) for _ in range(m)]
red = [False]*n
red[0] = True
balls = [1]*n
for x, y in mat:
x -= 1
y -= 1
if red[x] is True:
red[y] = True
balls[x] -= 1
balls[y] += 1
if balls[x] == 0:
red[x] = False
ans = 0
for r in ... |
[
7,
12,
13,
0,
13,
4,
13,
4,
13,
12,
2,
13,
17,
23,
13,
0,
13,
4,
13,
4,
13,
12,
2,
13,
17,
23,
13,
0,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
0,
13,
2,
39,
17,
13,
28,
13,
4,
13,
13,
14,
2,
18,
13,
18,
13,
13... | [
[
5,
4
],
[
117,
14
],
[
17,
16
],
[
119,
26
],
[
29,
28
],
[
113,
32
],
[
37,
34
],
[
28,
35
],
[
40,
39
],
[
113,
43
],
[
46,
45
],
[
115,
48
],
[
95,
51
],
[... | [
"def solve(n, m, x, y):\n x = list(map(lambda _:_-1, x))\n y = list(map(lambda _:_-1, y))\n p = [0] * n\n p[0] = 1\n c = [1] * n\n for i in range(m):\n if c[x[i]] > 1:\n if p[x[i]] == 1:\n p[y[i]] = 1\n else:\n if p[x[i]] == 1:\n p[... | def solve(n, m, x, y):
x = list(map(lambda _:_-1, x))
y = list(map(lambda _:_-1, y))
p = [0] * n
p[0] = 1
c = [1] * n
for i in range(m):
if c[x[i]] > 1:
if p[x[i]] == 1:
p[y[i]] = 1
else:
if p[x[i]] == 1:
p[y[i]] = 1
... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
2,
39,
17,
13,
0,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
17,
0,
13,
17,
14,
2,
18,
13,
13,
... | [
[
133,
2
],
[
133,
11
],
[
124,
13
],
[
134,
17
],
[
109,
19
],
[
134,
23
],
[
28,
25
],
[
110,
26
],
[
31,
30
],
[
113,
33
],
[
130,
35
],
[
130,
44
],
[
118,
46
... | [
"n_box, n_move = map(int,input().split())\nnum_balls = [1] * n_box\ncan_red = [0] * n_box\ncan_red[0] = 1\nfor i in range(n_move):\n From, to = map(int,input().split())\n From -= 1\n to -= 1\n if can_red[From] == 1:\n if num_balls[From] == 1:\n can_red[From] = 0\n can_red[to... | n_box, n_move = map(int,input().split())
num_balls = [1] * n_box
can_red = [0] * n_box
can_red[0] = 1
for i in range(n_move):
From, to = map(int,input().split())
From -= 1
to -= 1
if can_red[From] == 1:
if num_balls[From] == 1:
can_red[From] = 0
can_red[to] = 1
el... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
39,
28,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
4,
18,
13,
13,
39,
13,
13,
0,
13,
2,
39,
17,
13,
0,
13,
2,
39,
17,
13,
0,
18,
13,
17,
17,
28,... | [
[
155,
2
],
[
155,
11
],
[
164,
13
],
[
17,
16
],
[
147,
19
],
[
152,
21
],
[
152,
30
],
[
165,
33
],
[
143,
39
],
[
156,
43
],
[
158,
45
],
[
156,
49
],
[
54,
51
... | [
"n,m=map(int,input().split())\nxy=[]\nfor _ in range(m):\n x,y=map(int,input().split())\n xy.append([x,y])\n\nball=[1]*n\nred=[0]*n\nred[0]+=1\n\nfor i in range(m):\n if red[xy[i][0]-1]>=1:\n if ball[xy[i][0]-1]==1:\n red[xy[i][0]-1]=0\n red[xy[i][1]-1]+=1\n ball[xy[i][0]-1]-=1\... | n,m=map(int,input().split())
xy=[]
for _ in range(m):
x,y=map(int,input().split())
xy.append([x,y])
ball=[1]*n
red=[0]*n
red[0]+=1
for i in range(m):
if red[xy[i][0]-1]>=1:
if ball[xy[i][0]-1]==1:
red[xy[i][0]-1]=0
red[xy[i][1]-1]+=1
ball[xy[i][0]-1]-=1
ball[xy[i][1]-1]... |
[
7,
12,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
41,
28,
13,
4,
13,
13,
4,
4,
13,
4,
13,
12,
2,
4,
13,
13,
17,
23,
4,
18,
4,
13,
13,
0,
13,
13,
0,
13,
2,
39,
17,
13,
0,
13,
2,
39,
17,
13,
0,
18,
... | [
[
5,
4
],
[
5,
15
],
[
19,
18
],
[
15,
21
],
[
41,
40
],
[
44,
43
],
[
4,
47
],
[
50,
49
],
[
4,
53
],
[
58,
55
],
[
49,
56
],
[
76,
65
],
[
49,
66
],
[
86,... | [
"def main():\n N, M = list(map(int, input().split()))\n proc_list = [list(map(lambda z: int(z) - 1, input().split())) for _ in range(M)]\n counter = [1] * N\n red_flag = [0] * N\n red_flag[0] = 1\n for from_box, to_box in proc_list:\n if red_flag[from_box] == 1:\n if counter[from... | def main():
N, M = list(map(int, input().split()))
proc_list = [list(map(lambda z: int(z) - 1, input().split())) for _ in range(M)]
counter = [1] * N
red_flag = [0] * N
red_flag[0] = 1
for from_box, to_box in proc_list:
if red_flag[from_box] == 1:
if counter[from_box] == 1:
... |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
17,
0,
13,
2,
39,
17,
13,
28,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
18,
13,
2,
13,
17,
17,
0,
18,
13,
2,
13,
17,
17,
14,
2,
13,
13,
14,
... | [
[
81,
2
],
[
81,
11
],
[
72,
13
],
[
78,
16
],
[
76,
20
],
[
23,
22
],
[
82,
25
],
[
84,
27
],
[
84,
36
],
[
43,
38
],
[
79,
39
],
[
85,
41
],
[
50,
45
],
[
... | [
"n, m = map(int, input().split())\n\nans = {1}\nl = [1] * n\n\nfor i in range(m):\n x, y = map(int, input().split())\n l[x - 1] -= 1\n l[y - 1] += 1\n\n if x in ans:\n if l[x - 1] == 0: ans.remove(x); ans.add(y)\n else: ans.add(y)\nprint(len(ans))",
"n, m = map(int, input().split())",
... | n, m = map(int, input().split())
ans = {1}
l = [1] * n
for i in range(m):
x, y = map(int, input().split())
l[x - 1] -= 1
l[y - 1] += 1
if x in ans:
if l[x - 1] == 0: ans.remove(x); ans.add(y)
else: ans.add(y)
print(len(ans)) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
0,
13,
2,
39,
17,
13,
0,
13,
2,
39,
17,
2,
39,
17,
2,
13,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
13,
4,
18,
4,
13,
13,
13,
14,
2,
18,
13,
2,
13,
17,
17,
0,
18,
13,
... | [
[
124,
2
],
[
124,
11
],
[
118,
13
],
[
116,
17
],
[
121,
19
],
[
116,
27
],
[
31,
30
],
[
125,
33
],
[
133,
35
],
[
133,
44
],
[
122,
48
],
[
128,
50
],
[
59,
54
... | [
"n, m = map(int, input().split())\n\n# ボール個数、赤いボールがある可能性を管理\nb = [1] * n\nred = [1] + [0] * (n - 1)\n\nfor i in range(m):\n x, y = map(int, input().split())\n\n # 移す元に赤いボールがある可能性があれば、移す先に赤いボールが渡る可能性がある\n if red[x - 1] == 1:\n red[y - 1] = 1\n\n # ボール数の足し引き\n b[x - 1] -= 1\n b[y - 1] += 1\n\... | n, m = map(int, input().split())
# ボール個数、赤いボールがある可能性を管理
b = [1] * n
red = [1] + [0] * (n - 1)
for i in range(m):
x, y = map(int, input().split())
# 移す元に赤いボールがある可能性があれば、移す先に赤いボールが渡る可能性がある
if red[x - 1] == 1:
red[y - 1] = 1
# ボール数の足し引き
b[x - 1] -= 1
b[y - 1] += 1
# xのボールが0になったら赤いボ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.