forked from hakusai22/System_Architect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sa.py
41 lines (34 loc) · 1.21 KB
/
sa.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
30
31
32
33
34
35
36
37
38
39
40
41
import math
from bisect import bisect_left, bisect_right, insort_left, insort_right, insort, bisect
from math import ceil, floor, pow, gcd, sqrt, log10, fabs, fmod, factorial, inf, pi, e
from heapq import heapify, heapreplace, heappush, heappop, heappushpop, nlargest, nsmallest
from collections import defaultdict, Counter, deque
from itertools import permutations, combinations, combinations_with_replacement, accumulate, count, groupby
from queue import PriorityQueue, Queue, LifoQueue
from functools import lru_cache
from typing import List
import sys
sys.setrecursionlimit(10001000)
MOD = int(1e9 + 7)
INF = int(1e20)
INFMIN = float('-inf')
INFMAX = float('inf')
PI = 3.141592653589793
direc = [(1, 0), (0, 1), (-1, 0), (0, -1)]
direc8 = [(1, 0), (0, 1), (-1, 0), (0, -1), (1, 1), (1, -1), (-1, 1), (-1, -1)]
ALPS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
alps = 'abcdefghijklmnopqrstuvwxyz'
def alp(i):
return chr(ord('a') + i % 26) # i=0->'a', i=25->'z'
def input():
return sys.stdin.readline().rstrip()
def end(r=-1):
print(r)
exit()
# -*- coding: utf-8 -*-
# @Author : hakusai
# @Time : 2023/10/11 13:56
if __name__ == '__main__':
print("系统架构师")
print(10 ** 5)
print(math.log2(10 ** 5))