-
Notifications
You must be signed in to change notification settings - Fork 0
/
code3.py
29 lines (23 loc) · 1.06 KB
/
code3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from bisect import bisect_left, bisect_right
from collections import defaultdict, Counter, deque
from functools import lru_cache, reduce
from heapq import heappush, heappop, heapify, heappushpop, heapreplace
from itertools import accumulate,permutations,combinations,combinations_with_replacement,product
import sys
from math import exp,sqrt,gcd,factorial
import operator
#from scipy.sparse import csr_matrix
#from scipy.sparse.csgraph import shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson, NegativeCycleError, maximum_bipartite_matching, maximum_flow, minimum_spanning_tree
#import networkx as nx
#from networkx.utils import UnionFind
#from numba import njit, b1, i1, i4, i8, f8
#numba例 @njit(i1(i4[:], i8[:, :]),cache=True) 引数i4配列、i8 2次元配列,戻り値i1
#import numpy as np
def input(): return sys.stdin.readline().rstrip()
def divceil(n, k): return 1+(n-1)//k # n/kの切り上げを返す
def yn(hantei, yes='Yes', no='No'): print(yes if hantei else no)
def main():
#mod = 10**9+7
mod = 998244353
if __name__ == '__main__':
main()