Skip to content

Commit

Permalink
Merge pull request #421 from VatsalSin/patch-3
Browse files Browse the repository at this point in the history
Create template.py for Competitve Programming
  • Loading branch information
Kavya-24 authored Oct 7, 2024
2 parents 41bc93f + 24fd2e1 commit 02714dd
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions Competitive programming template/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import sys
import collections
import itertools
import heapq
import bisect
import math
from functools import lru_cache
from collections import defaultdict, deque, Counter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right
from itertools import permutations, combinations

# Fast input/output
input = sys.stdin.read
output = sys.stdout.write

# Utility functions
def ii():
"""Reads a single integer."""
return int(input().strip())

def mi():
"""Reads multiple integers."""
return map(int, input().strip().split())

def lmi():
"""Reads a list of multiple integers."""
return list(map(int, input().strip().split()))

def si():
"""Reads a single string."""
return input().strip()

def solve():
# Main logic for each test case/problem goes here
pass

def main():
# Uncomment the line below for handling multiple test cases
# t = ii() # Read the number of test cases
# for _ in range(t):
solve() # Call solve function for each test case/problem

if __name__ == "__main__":
# Uncomment the next line to use fast input in a local environment
# sys.stdin = open("input.txt", "r")
main()

0 comments on commit 02714dd

Please sign in to comment.