Task: | Kirjat |
Sender: | revol |
Submission time: | 2015-10-01 19:02:27 +0300 |
Language: | C++ |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp:1:1: error: 'import' does not name a type import math ^
Code
import math f = [] imp = tuple([int(i) for i in raw_input().split()]) for i in range(imp[0]): a = [] for j in (list(raw_input())): if j == "*": a.append(1) else: a.append(0) f.append(a) mi = int(math.ceil(math.sqrt(imp[2]))) a = 0 for o in range(mi, 1+min(imp[0], imp[1])): for i in range(imp[0]-o + 1): for j in range(imp[1]-o + 1): s = 0 l = f[i:i+o] for k in l: s += sum(k[j:j+o]) if s == imp[2]: a += 1 print "\n"+str(a)