You are viewing a single comment's thread. Return to all comments →
import math import os import random import re import sys
def pageCount(n, p): return min(p//2,n//2-p//2)
if name == 'main': fptr = open(os.environ['OUTPUT_PATH'], 'w')
n = int(input().strip()) p = int(input().strip()) result = pageCount(n, p) fptr.write(str(result) + '\n') fptr.close()
Seems like cookies are disabled on this browser, please enable them to open this website
Drawing Book
You are viewing a single comment's thread. Return to all comments →
!/bin/python3
import math import os import random import re import sys
def pageCount(n, p): return min(p//2,n//2-p//2)
if name == 'main': fptr = open(os.environ['OUTPUT_PATH'], 'w')