Code Submission Evaluation System Login

Datatähti 2016 alku

Start:2015-09-28 00:00:00
End:2015-10-12 00:00:00
 

Tasks | Scoreboard | Statistics


CSES - Datatähti 2016 alku - Results
History
2015-10-06 15:34:490
2015-10-06 15:21:320
2015-10-06 15:14:1843
2015-10-06 15:04:4543
2015-10-06 11:58:080
2015-10-06 10:25:1443
2015-10-06 10:21:5025
2015-10-06 10:20:5525
2015-10-06 10:16:5543
2015-10-06 10:02:4443
2015-10-06 09:55:0243
2015-10-06 09:50:4443
2015-10-06 09:38:4743
2015-10-06 09:37:040
2015-10-06 09:31:490
2015-10-01 19:02:27
2015-09-30 22:36:0043
2015-09-30 22:35:010
2015-09-30 22:31:5343
2015-09-30 22:30:2218
2015-09-30 22:28:4818
2015-09-30 21:31:1318
2015-09-30 21:24:1418
2015-09-30 20:51:5418
2015-09-30 19:36:4718
2015-09-30 19:06:3918
2015-09-30 19:05:390
2015-09-30 19:03:5518
2015-09-30 18:49:1518
2015-09-30 18:47:000
2015-09-30 18:43:5418
2015-09-30 18:38:530
2015-09-30 18:37:410
2015-09-30 18:33:020
2015-09-30 00:33:1743
2015-09-30 00:32:2125
2015-09-30 00:32:130
2015-09-30 00:28:5743
2015-09-29 14:04:020
2015-09-29 13:59:040
2015-09-29 13:46:180
2015-09-29 13:42:240
2015-09-29 13:40:530
2015-09-29 13:13:450
2015-09-29 13:11:530
2015-09-29 12:51:050
2015-09-29 12:45:390
2015-09-29 12:44:060
2015-09-29 12:43:090
2015-09-29 12:39:120
2015-09-29 12:37:430
2015-09-29 12:33:190
2015-09-29 12:31:080
2015-09-29 12:24:280
2015-09-29 12:23:460
2015-09-29 12:23:040
2015-09-29 12:21:460
2015-09-29 12:20:120
2015-09-29 12:19:350
2015-09-29 12:18:130
2015-09-29 12:17:070
2015-09-29 12:16:280
2015-09-29 12:15:110
2015-09-29 12:13:260
2015-09-29 12:10:470
2015-09-29 11:16:3243
2015-09-29 11:12:1943
2015-09-29 11:10:580
2015-09-29 11:09:380
2015-09-29 11:03:510
2015-09-29 10:06:4643
2015-09-29 10:04:1443
2015-09-29 09:57:1043
2015-09-29 09:54:5043
2015-09-29 09:46:4943
2015-09-29 09:45:3825
2015-09-29 09:44:570
2015-09-29 09:43:0325
2015-09-29 09:41:4825
2015-09-29 09:40:5225
2015-09-29 09:39:5925
2015-09-29 09:39:160
2015-09-29 09:38:2025
2015-09-29 09:16:2425
2015-09-29 09:14:1425
2015-09-29 09:13:3325
2015-09-29 09:12:4125
2015-09-29 09:10:490
2015-09-29 09:09:2725
2015-09-29 09:08:0325
2015-09-29 09:06:4725
2015-09-28 21:19:1725
2015-09-28 21:17:470
2015-09-28 21:16:430
2015-09-28 21:14:2425
2015-09-28 21:13:310
2015-09-28 21:12:190
2015-09-28 21:11:140
2015-09-28 21:09:3625
2015-09-28 18:57:5225
2015-09-28 18:57:1425
2015-09-28 18:51:2425
2015-09-28 18:48:580
2015-09-28 18:47:4925
2015-09-28 18:44:4325
2015-09-28 18:33:2525
2015-09-28 18:14:090
2015-09-28 18:12:300
2015-09-28 18:10:210
2015-09-28 18:00:240
2015-09-28 17:55:100
2015-09-28 17:53:400
2015-09-28 10:53:300
2015-09-28 10:48:530
2015-09-28 10:27:260
2015-09-28 10:26:290
Task:Kirjat
Sender:revol
Submission time:2015-10-01 19:02:27
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)