-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.py
50 lines (37 loc) · 859 Bytes
/
sample.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
42
43
44
45
46
47
48
49
50
import numpy as np
#
# FUNCTIONS
#
def result():
return 0
#
# INPUT
#
# Read number of test cases
T = int(input())
for t in range(1, T + 1):
# Read variables
################
# Single input
N = int(input())
# Double input
A, B = map(int, input().split())
# Variable length list
L = list(map(int, input().split()))
# Fixed length list
C = np.fromstring(input(), dtype=int, sep=' ')
# Multi row double input
D = np.empty(N, np.int_)
E = np.empty(N, np.int_)
for n in range(N):
D[n], E[n] = map(int, input().split())
# Matrix input
M = np.empty((A, B), np.int_)
for a in range(A):
E[a] = np.fromstring(input(), dtype=int, sep=' ')
# Calc output
#############
e = result()
# Print result
##############
print("Case #{}: {}".format(t, e))