-
Notifications
You must be signed in to change notification settings - Fork 0
/
_kattis.py
40 lines (31 loc) · 1.02 KB
/
_kattis.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
#
import sys
# only on string is input
s = sys.stdin.readline()[:-1]
# only on string of integers is an input
sn = map(int, sys.stdin.readline()[:-1].split(' '))
# n cases below
n = int(sys.stdin.readline()[:-1])
for case in range(n):
pass
# n cases below, each line is a string
n = int(sys.stdin.readline()[:-1])
for case in range(n):
line = sys.stdin.readline()[:-1]
# n cases below, each case is described with number, and is line of integers
ncases = int(sys.stdin.readline()[:-1])
for case in range(ncases):
l = map(int, sys.stdin.readline()[:-1].split(' '))
# n cases below, each case is described with number, and is line of integers
ncases = int(sys.stdin.readline()[:-1])
for case in range(ncases):
n = int(sys.stdin.readline()[:-1])
l = map(int, sys.stdin.readline()[:-1].split(' '))
# each line is a part of task
ll = [l for l in sys.stdin.readlines()]
for l in ll:
pass
# each line of integers is a part of task
ll = [map(int, l.split(' ')) for l in sys.stdin.readlines()]
for l in ll:
pass