-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #421 from VatsalSin/patch-3
Create template.py for Competitve Programming
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |