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'Lena is a programmer. She got a task to solve at work. There is an empty set of pairs of integers and n queries to process. Each query is one of three types: Help Lena to process the queries. The first line of input contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893 xc2 xb7105) -- the number of queries. Each of the next n lines starts with integer t (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893) -- the type of the query. A pair of integers a and b ( xe2 x80 x89- xe2 x80 x89109 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a, xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) follows in the query of the first type. An integer i (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) follows in the query of the second type. It is guaranteed that i is less than the number of the query, the query number i has the first type and the pair from the i-th query is not already removed. An integer q ( xe2 x80 x89- xe2 x80 x89109 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) follows in the query of the third type. For the queries of the third type print on a separate line the desired maximal value of x xc2 xb7q xe2 x80 x89+ xe2 x80 x89y. If there are no pairs in the set print "EMPTY SET". '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
18962522 |
natsukagami |
F |
July 8, 2016, 6:12 a.m. |
OK |
D |
TESTS |
65 |
2214 |
202956800 |
|
2600 |
18962435 |
natsukagami |
F |
July 8, 2016, 6:06 a.m. |
OK |
D |
TESTS |
65 |
2246 |
202956800 |
|
2600 |
18962023 |
natsukagami |
F |
July 8, 2016, 5:38 a.m. |
OK |
D |
TESTS |
65 |
2339 |
199270400 |
|
2600 |
18962047 |
natsukagami |
F |
July 8, 2016, 5:40 a.m. |
OK |
D |
TESTS |
65 |
2386 |
199270400 |
|
2600 |
18962256 |
natsukagami |
F |
July 8, 2016, 5:54 a.m. |
OK |
D |
TESTS |
65 |
2433 |
202956800 |
|
2600 |
27413240 |
Chenhongkan |
F |
May 28, 2017, 12:49 p.m. |
OK |
GNU C++ |
TESTS |
65 |
140 |
14438400 |
|
2600 |
40984385 |
ReaLNero1 |
F |
July 30, 2018, 7:20 p.m. |
OK |
GNU C++ |
TESTS |
65 |
155 |
14438400 |
|
2600 |
27413206 |
Chenhongkan |
F |
May 28, 2017, 12:47 p.m. |
OK |
GNU C++ |
TESTS |
65 |
155 |
14438400 |
|
2600 |
18940740 |
ShinFeb |
F |
July 7, 2016, 1:46 a.m. |
OK |
GNU C++ |
TESTS |
65 |
264 |
31232000 |
|
2600 |
26800093 |
vjudge1 |
F |
May 2, 2017, 10:26 a.m. |
OK |
GNU C++ |
TESTS |
65 |
280 |
24780800 |
|
2600 |
18782946 |
zhangchen |
F |
June 29, 2016, 12:18 p.m. |
OK |
GNU C++ |
TESTS |
65 |
280 |
26214400 |
|
2600 |
20292263 |
Eslamabdoo |
F |
Aug. 31, 2016, 1:23 a.m. |
OK |
GNU C++ |
TESTS |
65 |
295 |
26214400 |
|
2600 |
19445159 |
130705009 |
F |
July 27, 2016, 4:06 p.m. |
OK |
GNU C++ |
TESTS |
65 |
296 |
26214400 |
|
2600 |
29087006 |
131441373 |
F |
Aug. 1, 2017, 4:03 a.m. |
OK |
GNU C++ |
TESTS |
65 |
296 |
110694400 |
|
2600 |
32109358 |
y20070316 |
F |
Nov. 7, 2017, 3:52 a.m. |
OK |
GNU C++ |
TESTS |
65 |
358 |
99328000 |
|
2600 |
64444433 |
command_block |
F |
Nov. 7, 2019, 5:57 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
186 |
49049600 |
|
2600 |
22731479 |
wtw |
F |
Dec. 6, 2016, 1:40 p.m. |
OK |
GNU C++11 |
TESTS |
65 |
249 |
42803200 |
|
2600 |
19383008 |
spencer |
F |
July 24, 2016, 11:41 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
265 |
31846400 |
|
2600 |
18739573 |
ko_osaga |
F |
June 26, 2016, 3:41 p.m. |
OK |
GNU C++11 |
TESTS |
65 |
265 |
32460800 |
|
2600 |
54449219 |
time_interspace |
F |
May 21, 2019, 12:47 p.m. |
OK |
GNU C++11 |
TESTS |
65 |
265 |
58880000 |
|
2600 |
22488948 |
codemasterisme |
F |
Nov. 25, 2016, 12:41 p.m. |
OK |
GNU C++11 |
TESTS |
65 |
280 |
26214400 |
|
2600 |
19383121 |
spencer |
F |
July 24, 2016, 11:47 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
280 |
31846400 |
|
2600 |
57000858 |
Rockyyh |
F |
July 14, 2019, 3:27 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
280 |
61747200 |
|
2600 |
27413682 |
LIN452 |
F |
May 28, 2017, 1:16 p.m. |
OK |
GNU C++11 |
TESTS |
65 |
296 |
11980800 |
|
2600 |
27328007 |
LIN452 |
F |
May 25, 2017, 2:11 a.m. |
OK |
GNU C++11 |
TESTS |
65 |
296 |
64921600 |
|
2600 |
55074477 |
KwanghyunOn |
F |
June 4, 2019, 7:53 a.m. |
OK |
GNU C++14 |
TESTS |
65 |
295 |
32460800 |
|
2600 |
26808156 |
vjudge4 |
F |
May 2, 2017, 7:16 p.m. |
OK |
GNU C++14 |
TESTS |
65 |
327 |
20275200 |
|
2600 |
20842586 |
Steven_Wu |
F |
Sept. 23, 2016, 1:20 p.m. |
OK |
GNU C++14 |
TESTS |
65 |
405 |
13312000 |
|
2600 |
53049724 |
luogu_bot4 |
F |
April 20, 2019, 1:59 p.m. |
OK |
GNU C++14 |
TESTS |
65 |
405 |
146944000 |
|
2600 |
53049547 |
Christopher_Liu |
F |
April 20, 2019, 1:54 p.m. |
OK |
GNU C++14 |
TESTS |
65 |
405 |
146944000 |
|
2600 |
24740432 |
Bruteforceman |
F |
Feb. 17, 2017, 3:36 p.m. |
OK |
GNU C++14 |
TESTS |
65 |
436 |
34406400 |
|
2600 |
27411242 |
KyleYoung |
F |
May 28, 2017, 11:37 a.m. |
OK |
GNU C++14 |
TESTS |
65 |
451 |
94617600 |
|
2600 |
28569444 |
SssssssssssssbbbBBBB |
F |
July 15, 2017, 9:28 a.m. |
OK |
GNU C++14 |
TESTS |
65 |
483 |
77004800 |
|
2600 |
46904209 |
minson123 |
F |
Dec. 11, 2018, 1:24 p.m. |
OK |
GNU C++14 |
TESTS |
65 |
483 |
84172800 |
|
2600 |
22723391 |
poursoul |
F |
Dec. 6, 2016, 5:31 a.m. |
OK |
GNU C++14 |
TESTS |
65 |
499 |
54272000 |
|
2600 |
41108916 |
Juno |
F |
Aug. 2, 2018, 5:49 a.m. |
OK |
GNU C++17 |
TESTS |
65 |
358 |
53760000 |
|
2600 |
53049695 |
vjudge3 |
F |
April 20, 2019, 1:58 p.m. |
OK |
GNU C++17 |
TESTS |
65 |
389 |
146841600 |
|
2600 |
62622635 |
hjk1030 |
F |
Oct. 15, 2019, 1:15 p.m. |
OK |
GNU C++17 |
TESTS |
65 |
530 |
82124800 |
|
2600 |
49348069 |
vjudge1 |
F |
Feb. 2, 2019, 6:48 a.m. |
OK |
GNU C++17 |
TESTS |
65 |
561 |
101683200 |
|
2600 |
52475128 |
Stroustrup |
F |
April 7, 2019, 9:47 p.m. |
OK |
GNU C++17 |
TESTS |
65 |
576 |
145100800 |
|
2600 |
68401850 |
UncleGrandpa |
F |
Jan. 8, 2020, 1:27 p.m. |
OK |
GNU C++17 |
TESTS |
65 |
686 |
87961600 |
|
2600 |
60475825 |
INVWVZ |
F |
Sept. 13, 2019, 8:04 a.m. |
OK |
GNU C++17 |
TESTS |
65 |
701 |
121241600 |
|
2600 |
54445116 |
Jostic11 |
F |
May 21, 2019, 10:53 a.m. |
OK |
GNU C++17 |
TESTS |
65 |
717 |
25088000 |
|
2600 |
54370733 |
Jostic11 |
F |
May 19, 2019, 6:27 a.m. |
OK |
GNU C++17 |
TESTS |
65 |
748 |
25088000 |
|
2600 |
47011363 |
AlexLuchianov |
F |
Dec. 14, 2018, 4:41 p.m. |
OK |
GNU C++17 |
TESTS |
65 |
748 |
75059200 |
|
2600 |
18446345 |
uwi |
F |
June 14, 2016, 8:17 a.m. |
OK |
Java 8 |
TESTS |
65 |
2339 |
18124800 |
|
2600 |
45976976 |
Harpae |
F |
Nov. 19, 2018, 7:16 p.m. |
OK |
Java 8 |
TESTS |
65 |
2526 |
258969600 |
|
2600 |
45976969 |
Harpae |
F |
Nov. 19, 2018, 7:16 p.m. |
OK |
Java 8 |
TESTS |
65 |
2636 |
258969600 |
|
2600 |
28947462 |
mualanhlung017 |
F |
July 28, 2017, 8:19 a.m. |
OK |
Java 8 |
TESTS |
65 |
2683 |
268390400 |
|
2600 |
45976868 |
Harpae |
F |
Nov. 19, 2018, 7:12 p.m. |
OK |
Java 8 |
TESTS |
65 |
2698 |
258969600 |
|
2600 |
28947911 |
mualanhlung017 |
F |
July 28, 2017, 8:34 a.m. |
OK |
Java 8 |
TESTS |
65 |
2808 |
268390400 |
|
2600 |
28964626 |
mualanhlung017 |
F |
July 29, 2017, 2:39 a.m. |
OK |
Java 8 |
TESTS |
65 |
2838 |
268390400 |
|
2600 |
45976846 |
Harpae |
F |
Nov. 19, 2018, 7:11 p.m. |
OK |
Java 8 |
TESTS |
65 |
2885 |
225177600 |
|
2600 |
18438369 |
I_Need_Alex_R_Coleman |
F |
June 13, 2016, 10:09 p.m. |
OK |
Java 8 |
TESTS |
65 |
3478 |
246681600 |
|
2600 |
18437842 |
I_Need_Alex_R_Coleman |
F |
June 13, 2016, 9:27 p.m. |
OK |
Java 8 |
TESTS |
65 |
3681 |
258969600 |
|
2600 |
18902694 |
Rartain |
F |
July 5, 2016, 2:35 p.m. |
OK |
MS C++ |
TESTS |
65 |
592 |
91750400 |
|
2600 |
18814560 |
Los_Angelos_Laycurse |
F |
June 30, 2016, 2:09 a.m. |
OK |
MS C++ |
TESTS |
65 |
592 |
117248000 |
|
2600 |
18522658 |
Taube |
F |
June 16, 2016, 2:39 p.m. |
OK |
MS C++ |
TESTS |
65 |
3291 |
19660800 |
|
2600 |
remove filters
Back to search problems