PALINGAM (AUG17) [Python]#200
PALINGAM (AUG17) [Python]#200avsingh999 wants to merge 18 commits intoiiitv:masterfrom avsingh999:master
Conversation
|
Hi! Thanks for contributing to this repository. |
|
what's wrong in the code |
2017/AUG/AUG17/PALINGAM/palingam.py
Outdated
| b = input() | ||
| la = list() | ||
| lb = list() | ||
| la = 26*[0] |
There was a problem hiding this comment.
Add space around * and repush so that it will trigger travis logs and we can know whats going wrong.
|
@avsingh999 There is no issue related to this PR, please always create one issue before sending a PR. |
|
now please check again what's wrong |
|
@avsingh999 Make require changes in month.md |
|
@gitmate-bot rebase |
|
Comment on 9c41e4a, file 2017/AUG/AUG17/PALINGAM/palingam.py, line 2. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpow3b1rvo/2017/AUG/AUG17/PALINGAM/palingam.py
+++ b/tmp/tmpow3b1rvo/2017/AUG/AUG17/PALINGAM/palingam.py
@@ -1,5 +1,5 @@
t = int(input())
-while t > 0 :
+while t > 0:
a = input()
b = input()
la = list() |
aashutoshrathi
left a comment
There was a problem hiding this comment.
Thanks for your patience @avsingh999
| @@ -0,0 +1,15 @@ | |||
| t = int(input()) | |||
| @@ -0,0 +1,28 @@ | |||
| t = int(input()) | |||
There was a problem hiding this comment.
File name should be all-caps.
CHEFGP (OCT17) [Python.py]
| w = w + smax * ra | ||
| if rb != 0: | ||
| w = w + smin | ||
| rb -= 1; |
There was a problem hiding this comment.
The code does not comply to PEP8.
Origin: PEP8Bear, Section: pep8.
The issue can be fixed by applying the following patch:
--- a/tmp/tmpm5bfynyn/2017/OCT/OCT17/CHEFGP.py
+++ b/tmp/tmpm5bfynyn/2017/OCT/OCT17/CHEFGP.py
@@ -29,7 +29,7 @@
w = w + smax * ra
if rb != 0:
w = w + smin
- rb -= 1;
+ rb -= 1
elif ra >= x:
k = x
i = 0| i += 1 | ||
| print(w) | ||
| t -= 1 | ||
|
|
There was a problem hiding this comment.
The code does not comply to PEP8.
Origin: PEP8Bear, Section: pep8.
The issue can be fixed by applying the following patch:
--- a/tmp/tmpm5bfynyn/2017/OCT/OCT17/CHEFGP.py
+++ b/tmp/tmpm5bfynyn/2017/OCT/OCT17/CHEFGP.py
@@ -61,4 +61,3 @@
i += 1
print(w)
t -= 1
- |
Comment on 3ace4a0, file 2017/OCT/OCT17/CHEFGP.py, line 32. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmp_qnjh1q3/2017/OCT/OCT17/CHEFGP.py
+++ b/tmp/tmp_qnjh1q3/2017/OCT/OCT17/CHEFGP.py
@@ -29,7 +29,7 @@
w = w + smax * ra
if rb != 0:
w = w + smin
- rb -= 1;
+ rb -= 1
elif ra >= x:
k = x
i = 0 |
|
Comment on 3ace4a0, file 2017/OCT/OCT17/CHEFGP.py, line 64. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmp_qnjh1q3/2017/OCT/OCT17/CHEFGP.py
+++ b/tmp/tmp_qnjh1q3/2017/OCT/OCT17/CHEFGP.py
@@ -61,4 +61,3 @@
i += 1
print(w)
t -= 1
- |
|
Comment on 04f39da, file 2017/AUG/COOK85/OBTTRNGL/OBTTRNGL.py, line 3. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpchqeg53q/2017/AUG/COOK85/OBTTRNGL/OBTTRNGL.py
+++ b/tmp/tmpchqeg53q/2017/AUG/COOK85/OBTTRNGL/OBTTRNGL.py
@@ -1,8 +1,8 @@
t = int(input())
for i in range(t):
- n,x,y = map(int ,input().split())
- a = min(x,y)
- b = max(x,y)
+ n, x, y = map(int, input().split())
+ a = min(x, y)
+ b = max(x, y)
b = b - a + 1
a = 1
if (n%2 == 0 and n/2 == b - a) or (b - a == 1 or b == n): |
|
Comment on 04f39da, file 2017/AUG/COOK85/OBTTRNGL/OBTTRNGL.py, line 8. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpchqeg53q/2017/AUG/COOK85/OBTTRNGL/OBTTRNGL.py
+++ b/tmp/tmpchqeg53q/2017/AUG/COOK85/OBTTRNGL/OBTTRNGL.py
@@ -5,7 +5,7 @@
b = max(x,y)
b = b - a + 1
a = 1
- if (n%2 == 0 and n/2 == b - a) or (b - a == 1 or b == n):
+ if (n % 2 == 0 and n/2 == b - a) or (b - a == 1 or b == n):
print("0")
else:
if b > n/2 + 1: |
|
Comment on 04f39da, file 2017/AUG/COOK85/OBTTRNGL/OBTTRNGL.py, line 15. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpchqeg53q/2017/AUG/COOK85/OBTTRNGL/OBTTRNGL.py
+++ b/tmp/tmpchqeg53q/2017/AUG/COOK85/OBTTRNGL/OBTTRNGL.py
@@ -12,4 +12,3 @@
print(n - b)
elif b < n/2 + 1:
print(b - 2)
- |
|
Comment on 04f39da, file 2017/OCT/OCT17/CHEFGP.py, line 32. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpchqeg53q/2017/OCT/OCT17/CHEFGP.py
+++ b/tmp/tmpchqeg53q/2017/OCT/OCT17/CHEFGP.py
@@ -29,7 +29,7 @@
w = w + smax * ra
if rb != 0:
w = w + smin
- rb -= 1;
+ rb -= 1
elif ra >= x:
k = x
i = 0 |
|
Comment on 04f39da, file 2017/OCT/OCT17/CHEFGP.py, line 64. The code does not comply to PEP8. Origin: PEP8Bear, Section: The issue can be fixed by applying the following patch: --- a/tmp/tmpchqeg53q/2017/OCT/OCT17/CHEFGP.py
+++ b/tmp/tmpchqeg53q/2017/OCT/OCT17/CHEFGP.py
@@ -61,4 +61,3 @@
i += 1
print(w)
t -= 1
- |
Fixes #212
Problem Code (Contest Code) [Language].