Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
B'Company "Robots industries" produces robots for territory protection. Robots protect triangle territories -- right isosceles triangles with catheti parallel to North-South and East-West directions. Owner of some land buys and sets robots on his territory to protect it. From time to time, businessmen want to build offices on that land and want to know how many robots will guard it. You are to handle these queries. The first line contains integer N -- width and height of the land, and integer Q -- number of queries to handle. Next Q lines contain queries you need to process. Two types of queries: For each second type query output how many robots guard this point. Each answer should be in a separate line.'... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
18965542 |
TsReaper |
I |
July 8, 2016, 8:41 a.m. |
OK |
GNU C |
TESTS |
12 |
343 |
203366400 |
|
3000 |
40986167 |
ReaLNero1 |
I |
July 30, 2018, 8:23 p.m. |
OK |
GNU C++ |
TESTS |
12 |
249 |
501145600 |
|
3000 |
28364792 |
vjudge1 |
I |
July 8, 2017, 8:48 a.m. |
OK |
GNU C++ |
TESTS |
12 |
264 |
503398400 |
|
3000 |
12907271 |
I_so_sad |
I |
Sept. 9, 2015, 9:10 a.m. |
OK |
GNU C++ |
TESTS |
12 |
265 |
501964800 |
|
3000 |
12870060 |
antonkov enot110 subscriber |
I |
Sept. 6, 2015, 12:03 p.m. |
OK |
GNU C++ |
TESTS |
12 |
296 |
209920000 |
|
3000 |
12921156 |
chffy |
I |
Sept. 10, 2015, 10:09 a.m. |
OK |
GNU C++ |
TESTS |
12 |
436 |
5222400 |
|
3000 |
14785725 |
rainbow979 |
I |
Dec. 13, 2015, 1:52 p.m. |
OK |
GNU C++ |
TESTS |
12 |
498 |
128716800 |
|
3000 |
16865981 |
RNS_JKS |
I |
March 22, 2016, 4:28 a.m. |
OK |
GNU C++ |
TESTS |
12 |
499 |
306380800 |
|
3000 |
12908629 |
Hwhitetooth |
I |
Sept. 9, 2015, 11:31 a.m. |
OK |
GNU C++ |
TESTS |
12 |
514 |
108544000 |
|
3000 |
13833364 |
130705009 |
I |
Oct. 25, 2015, 4:36 a.m. |
OK |
GNU C++ |
TESTS |
12 |
514 |
305561600 |
|
3000 |
12919553 |
FuckYouAllCodeForces |
I |
Sept. 10, 2015, 7:52 a.m. |
OK |
GNU C++ |
TESTS |
12 |
545 |
305561600 |
|
3000 |
66322681 |
luogu_bot4 |
I |
Dec. 5, 2019, 2:40 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
187 |
11673600 |
|
3000 |
64159631 |
Dilute |
I |
Nov. 3, 2019, 2:01 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
217 |
203366400 |
|
3000 |
68344235 |
XieRujian |
I |
Jan. 7, 2020, 6:14 a.m. |
OK |
GNU C++11 |
TESTS |
12 |
218 |
3584000 |
|
3000 |
64798445 |
WZYYN |
I |
Nov. 13, 2019, 1:43 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
218 |
17817600 |
|
3000 |
63632518 |
panole |
I |
Oct. 28, 2019, 6:56 a.m. |
OK |
GNU C++11 |
TESTS |
12 |
233 |
202956800 |
|
3000 |
69225246 |
HNFMS_Lsk |
I |
Jan. 21, 2020, 6:55 a.m. |
OK |
GNU C++11 |
TESTS |
12 |
234 |
58880000 |
|
3000 |
69227296 |
luogu_bot2 |
I |
Jan. 21, 2020, 7:52 a.m. |
OK |
GNU C++11 |
TESTS |
12 |
249 |
19660800 |
|
3000 |
66224706 |
vjudge4 |
I |
Dec. 3, 2019, 12:08 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
249 |
44646400 |
|
3000 |
69225284 |
luogu_bot3 |
I |
Jan. 21, 2020, 6:56 a.m. |
OK |
GNU C++11 |
TESTS |
12 |
249 |
58880000 |
|
3000 |
69952361 |
luogu_bot1 |
I |
Feb. 1, 2020, 9:17 a.m. |
OK |
GNU C++11 |
TESTS |
12 |
249 |
404582400 |
|
3000 |
69722728 |
nealchen |
I |
Jan. 29, 2020, 11:15 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
234 |
12083200 |
|
3000 |
65687685 |
jiangly |
I |
Nov. 25, 2019, 1:52 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
280 |
202444800 |
|
3000 |
25498621 |
daminho |
I |
March 15, 2017, 12:56 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
296 |
108441600 |
|
3000 |
66530132 |
wucstdio |
I |
Dec. 9, 2019, 7:22 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
311 |
57139200 |
|
3000 |
68401975 |
PinkRabbit |
I |
Jan. 8, 2020, 1:30 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
327 |
404787200 |
|
3000 |
68741363 |
liuxiao |
I |
Jan. 14, 2020, 1:23 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
327 |
501964800 |
|
3000 |
41313239 |
wleung_bvg |
I |
Aug. 7, 2018, 5:35 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
327 |
502886400 |
|
3000 |
65468158 |
cz_xuyixuan |
I |
Nov. 21, 2019, 7:08 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
342 |
22425600 |
|
3000 |
66309572 |
mayaohua2003 |
I |
Dec. 5, 2019, 10:53 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
358 |
202752000 |
|
3000 |
66206182 |
rushcheyo |
I |
Dec. 3, 2019, 3:09 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
389 |
501760000 |
|
3000 |
65687671 |
jiangly |
I |
Nov. 25, 2019, 1:51 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
280 |
202444800 |
|
3000 |
66668200 |
Elegia |
I |
Dec. 12, 2019, 8:07 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
312 |
214220800 |
|
3000 |
65937582 |
Infleaking |
I |
Nov. 29, 2019, 3:33 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
327 |
206848000 |
|
3000 |
66278344 |
ruo |
I |
Dec. 4, 2019, 4:04 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
373 |
501964800 |
|
3000 |
67026931 |
Fulisike |
I |
Dec. 16, 2019, 2:38 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
405 |
214016000 |
|
3000 |
68741311 |
alan_cty |
I |
Jan. 14, 2020, 1:20 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
436 |
202752000 |
|
3000 |
66626510 |
AprilGrimoire |
I |
Dec. 11, 2019, 9:17 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
514 |
420044800 |
|
3000 |
61885544 |
ppc_qjd |
I |
Oct. 5, 2019, 3:14 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
795 |
202752000 |
|
3000 |
61848895 |
vjudge4 |
I |
Oct. 4, 2019, 12:08 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
920 |
408985600 |
|
3000 |
12905701 |
uwi |
I |
Sept. 9, 2015, 5:51 a.m. |
OK |
Java 8 |
TESTS |
12 |
1092 |
319590400 |
|
3000 |
12905599 |
uwi |
I |
Sept. 9, 2015, 5:34 a.m. |
OK |
Java 8 |
TESTS |
12 |
1497 |
319488000 |
|
3000 |
12910095 |
Emy_fci |
I |
Sept. 9, 2015, 1:25 p.m. |
OK |
MS C++ |
TESTS |
12 |
576 |
305766400 |
|
3000 |
12875043 |
enot110 |
I |
Sept. 6, 2015, 4:34 p.m. |
OK |
MS C++ |
TESTS |
12 |
638 |
2457600 |
|
3000 |
12875038 |
enot110 |
I |
Sept. 6, 2015, 4:34 p.m. |
OK |
MS C++ |
TESTS |
12 |
655 |
2457600 |
|
3000 |
12875035 |
enot110 |
I |
Sept. 6, 2015, 4:34 p.m. |
OK |
MS C++ |
TESTS |
12 |
670 |
2457600 |
|
3000 |
remove filters
Back to search problems