start new:
tmux
start new with session name:
tmux new -s myname
#AnubhavBalodhi, Puzzling.SE, 7804, 23216, 314... | |
N=int(input()) | |
for num in range(N): | |
for X in range(2,N-8): | |
if (8*((num*(num+1)-8*(X+3))))==(825*(num-4)): | |
print(X,num) | |
#BeDaBe(a)st |
def isPow2(num): | |
rem=num%2 | |
while num>1: | |
if rem==1: | |
return False | |
rem=num%2 | |
num/=2 | |
if num>1: | |
return False | |
else: |
#/usr/bin/python | |
import sys | |
import json | |
# open grid file | |
with open(sys.argv[1]) as f: | |
lines = [line.rstrip('\n') for line in f] | |
# make the grid but padded on left right and bottom sides with a sentinel like this (makes it easy to grab diagonals) |
#AnubhavBalodhi, SPOJ, PALIN, 16/08/2024 | |
def nextPalin(num :str ) -> str: | |
odd_or_not = len(num)%2 | |
h_len = len(num)//2 | |
full = [int(c) for c in num] | |