-
Notifications
You must be signed in to change notification settings - Fork 0
/
python.json
55 lines (52 loc) · 1.7 KB
/
python.json
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"competitive": {
"prefix": "startpy",
"body": [
"#https://www.codechef.com/UADPIP01/problems/MXAD",
"import numpy as np",
"import logging",
"",
"logging.basicConfig(filename='logger.log', encoding='utf-8', level=logging.DEBUG)",
"",
"import sys",
"import math",
"import bisect",
"from sys import stdin,stdout",
"from math import gcd,floor,sqrt,log",
"from collections import defaultdict as dd",
"from bisect import bisect_left as bl,bisect_right as br",
"sys.setrecursionlimit(100000000)",
"inp =lambda: int(input())",
"# strng =lambda: input().strip()",
"# jn =lambda x,l: x.join(map(str,l))",
"# strl =lambda: list(input().strip())",
"# mul =lambda: map(int,input().strip().split())",
"# mulf =lambda: map(float,input().strip().split())",
"# seq =lambda: list(map(int,input().strip().split()))",
"# ceil =lambda x: int(x) if(x==int(x)) else int(x)+1",
"# ceildiv=lambda x,d: x//d if(x%d==0) else x//d+1",
"# flush =lambda: stdout.flush()",
"# stdstr =lambda: stdin.readline()",
"# stdint =lambda: int(stdin.readline())",
"# stdpr =lambda x: stdout.write(str(x))",
"logl = lambda l: logging.info(str(l))",
"logw = lambda l: logging.warning(str(l))",
"mod=1000000007",
"",
"",
"def main():",
" tests = input()",
" tests = int(tests)",
" logging.basicConfig(filename='logger.log', encoding='utf-8', level=logging.DEBUG)",
" while (tests):",
" n = input()",
" n = int(n)",
" logging.warning('start of test:%d',n)",
" tests = tests-1",
" return 0",
"if __name__ ==\"__main__\":",
" main()"
],
"description": "competitive"
}
}