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"You should process m queries over a set D of strings. Each query is one of three kinds: Note that you should solve the problem in online mode. It means that you can't read the whole input at once. You can read each query only after writing the answer for the last query of the third type. Use functions fflush in C++ and BufferedWriter.flush in Java languages after each writing in your program. The first line contains integer m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893 xc2 xb7105) -- the number of queries. Each of the next m lines contains integer t (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893) and nonempty string s -- the kind of the query and the string to process. All strings consist of only lowercase English letters. The sum of lengths of all strings in the input will not exceed 3 xc2 xb7105. For each query of the third kind print the only integer c -- the desired number of occurrences in the string s. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
28393789 |
rainboy |
F |
July 9, 2017, 8:15 p.m. |
OK |
GNU C |
TESTS |
47 |
764 |
24166400 |
|
2700 |
20324045 |
tjytlxwxhyzqfw |
F |
Sept. 1, 2016, 2:21 p.m. |
OK |
GNU C |
TESTS |
47 |
1045 |
59494400 |
|
2700 |
35112959 |
vjudge2 |
F |
Feb. 10, 2018, 6:05 a.m. |
OK |
GNU C++ |
TESTS |
47 |
764 |
47308800 |
|
2700 |
20307348 |
natsugiri |
F |
Aug. 31, 2016, 4:16 p.m. |
OK |
GNU C++ |
TESTS |
47 |
779 |
70348800 |
|
2700 |
28662589 |
vjudge1 |
F |
July 18, 2017, 8:45 a.m. |
OK |
GNU C++ |
TESTS |
47 |
811 |
36352000 |
|
2700 |
35079248 |
vjudge2 |
F |
Feb. 9, 2018, 5:48 a.m. |
OK |
GNU C++ |
TESTS |
47 |
811 |
77004800 |
|
2700 |
20936800 |
AkaneSasu |
F |
Sept. 27, 2016, 2:30 a.m. |
OK |
GNU C++ |
TESTS |
47 |
811 |
198553600 |
|
2700 |
20376484 |
sjtsjt |
F |
Sept. 4, 2016, 7:17 a.m. |
OK |
GNU C++ |
TESTS |
47 |
826 |
34304000 |
|
2700 |
20065369 |
RNS_JKS |
F |
Aug. 22, 2016, 4:07 p.m. |
OK |
GNU C++ |
TESTS |
47 |
826 |
37785600 |
|
2700 |
28584361 |
zhuml |
F |
July 16, 2017, 1:31 a.m. |
OK |
GNU C++ |
TESTS |
47 |
826 |
77107200 |
|
2700 |
20415200 |
ddddddpppppp |
F |
Sept. 6, 2016, 8:51 a.m. |
OK |
GNU C++ |
TESTS |
47 |
826 |
151552000 |
|
2700 |
34630723 |
jesseliu612 |
F |
Jan. 28, 2018, 10:56 a.m. |
OK |
GNU C++ |
TESTS |
47 |
842 |
79360000 |
|
2700 |
51370699 |
libra8z |
F |
March 16, 2019, 11:47 a.m. |
OK |
GNU C11 |
TESTS |
47 |
2105 |
201728000 |
|
2700 |
51370651 |
libra8z |
F |
March 16, 2019, 11:46 a.m. |
OK |
GNU C11 |
TESTS |
47 |
2105 |
201728000 |
|
2700 |
20178024 |
nhphuongltv |
F |
Aug. 26, 2016, 3:08 p.m. |
OK |
GNU C++11 |
TESTS |
47 |
763 |
11366400 |
|
2700 |
20158098 |
BishalG |
F |
Aug. 25, 2016, 3:31 p.m. |
OK |
GNU C++11 |
TESTS |
47 |
764 |
175513600 |
|
2700 |
20078993 |
ceerRep |
F |
Aug. 23, 2016, 6:54 a.m. |
OK |
GNU C++11 |
TESTS |
47 |
779 |
34406400 |
|
2700 |
20087028 |
anta |
F |
Aug. 23, 2016, 1:54 p.m. |
OK |
GNU C++11 |
TESTS |
47 |
779 |
75776000 |
|
2700 |
28776335 |
ywwyww |
F |
July 22, 2017, 10:48 a.m. |
OK |
GNU C++11 |
TESTS |
47 |
779 |
88985600 |
|
2700 |
20936306 |
MohanLau |
F |
Sept. 27, 2016, 1:14 a.m. |
OK |
GNU C++11 |
TESTS |
47 |
795 |
127795200 |
|
2700 |
20101454 |
naij |
F |
Aug. 24, 2016, 8:31 a.m. |
OK |
GNU C++11 |
TESTS |
47 |
795 |
455680000 |
|
2700 |
31667814 |
YuChang |
F |
Oct. 24, 2017, 3:30 a.m. |
OK |
GNU C++11 |
TESTS |
47 |
826 |
140185600 |
|
2700 |
48515655 |
lwhlwh |
F |
Jan. 18, 2019, 3:39 a.m. |
OK |
GNU C++11 |
TESTS |
47 |
841 |
70246400 |
|
2700 |
20093365 |
kshj78 |
F |
Aug. 23, 2016, 7:53 p.m. |
OK |
GNU C++11 |
TESTS |
47 |
842 |
45363200 |
|
2700 |
20371601 |
DimonK |
F |
Sept. 3, 2016, 10:22 p.m. |
OK |
GNU C++14 |
TESTS |
47 |
810 |
272281600 |
|
2700 |
29450837 |
Wuxing |
F |
Aug. 14, 2017, 7:07 a.m. |
OK |
GNU C++14 |
TESTS |
47 |
826 |
87040000 |
|
2700 |
31451942 |
zghh |
F |
Oct. 17, 2017, 2:20 p.m. |
OK |
GNU C++14 |
TESTS |
47 |
841 |
71372800 |
|
2700 |
27435926 |
fqw |
F |
May 29, 2017, 8:38 p.m. |
OK |
GNU C++14 |
TESTS |
47 |
842 |
23552000 |
|
2700 |
34242189 |
walht |
F |
Jan. 17, 2018, 7:16 a.m. |
OK |
GNU C++14 |
TESTS |
47 |
904 |
72192000 |
|
2700 |
31979783 |
ctlchild |
F |
Nov. 2, 2017, 12:30 p.m. |
OK |
GNU C++14 |
TESTS |
47 |
904 |
72908800 |
|
2700 |
29456199 |
Wuxing |
F |
Aug. 14, 2017, 10:51 a.m. |
OK |
GNU C++14 |
TESTS |
47 |
904 |
87040000 |
|
2700 |
22686065 |
itu |
F |
Dec. 3, 2016, 10:20 p.m. |
OK |
GNU C++14 |
TESTS |
47 |
920 |
22323200 |
|
2700 |
36288760 |
Jubair_2147483647 |
F |
March 15, 2018, 1:26 a.m. |
OK |
GNU C++14 |
TESTS |
47 |
920 |
102195200 |
|
2700 |
20371472 |
DimonK |
F |
Sept. 3, 2016, 10:06 p.m. |
OK |
GNU C++14 |
TESTS |
47 |
950 |
369152000 |
|
2700 |
38145855 |
karasek |
F |
May 12, 2018, 6:19 p.m. |
OK |
GNU C++17 |
TESTS |
47 |
1216 |
212889600 |
|
2700 |
37365101 |
q234rty |
F |
April 16, 2018, 4:54 a.m. |
OK |
GNU C++17 |
TESTS |
47 |
1372 |
148275200 |
|
2700 |
38529920 |
RUSH_D_CAT |
F |
May 22, 2018, 9:22 a.m. |
OK |
GNU C++17 |
TESTS |
47 |
1434 |
47513600 |
|
2700 |
40380558 |
DZYO |
F |
July 15, 2018, 1:50 p.m. |
OK |
GNU C++17 |
TESTS |
47 |
1434 |
85094400 |
|
2700 |
54852947 |
saketh |
F |
May 30, 2019, 5:35 p.m. |
OK |
GNU C++17 |
TESTS |
47 |
1497 |
37785600 |
|
2700 |
42271818 |
WillWang98 |
F |
Aug. 30, 2018, 8:53 a.m. |
OK |
GNU C++17 |
TESTS |
47 |
1528 |
70553600 |
|
2700 |
63773224 |
hjk1030 |
F |
Oct. 30, 2019, 8:42 a.m. |
OK |
GNU C++17 |
TESTS |
47 |
1590 |
135270400 |
|
2700 |
51370806 |
libra8z |
F |
March 16, 2019, 11:50 a.m. |
OK |
GNU C++17 |
TESTS |
47 |
1715 |
186675200 |
|
2700 |
54780590 |
fleimgruber |
F |
May 28, 2019, 9:15 p.m. |
OK |
GNU C++17 |
TESTS |
47 |
1731 |
12185600 |
|
2700 |
54853095 |
saketh |
F |
May 30, 2019, 5:41 p.m. |
OK |
GNU C++17 |
TESTS |
47 |
1731 |
37785600 |
|
2700 |
20297181 |
azukun |
F |
Aug. 31, 2016, 8:46 a.m. |
OK |
MS C# |
TESTS |
47 |
2589 |
30822400 |
|
2700 |
27205678 |
Yazan_Eagle |
F |
May 18, 2017, 11:59 p.m. |
OK |
MS C# |
TESTS |
47 |
2635 |
34713600 |
|
2700 |
20100436 |
lxn |
F |
Aug. 24, 2016, 7:33 a.m. |
OK |
MS C++ |
TESTS |
47 |
608 |
53657600 |
|
2700 |
20100242 |
lxn |
F |
Aug. 24, 2016, 7:22 a.m. |
OK |
MS C++ |
TESTS |
47 |
811 |
53657600 |
|
2700 |
20174733 |
zhk |
F |
Aug. 26, 2016, 12:21 p.m. |
OK |
MS C++ |
TESTS |
47 |
826 |
39628800 |
|
2700 |
20362270 |
vjudge4 |
F |
Sept. 3, 2016, 1:18 p.m. |
OK |
MS C++ |
TESTS |
47 |
951 |
34304000 |
|
2700 |
20362155 |
13048047792 |
F |
Sept. 3, 2016, 1:13 p.m. |
OK |
MS C++ |
TESTS |
47 |
967 |
34304000 |
|
2700 |
20371598 |
DimonK |
F |
Sept. 3, 2016, 10:22 p.m. |
OK |
MS C++ |
TESTS |
47 |
997 |
175411200 |
|
2700 |
20371674 |
DimonK |
F |
Sept. 3, 2016, 10:30 p.m. |
OK |
MS C++ |
TESTS |
47 |
1014 |
72192000 |
|
2700 |
20371542 |
DimonK |
F |
Sept. 3, 2016, 10:14 p.m. |
OK |
MS C++ |
TESTS |
47 |
1045 |
126771200 |
|
2700 |
20371645 |
DimonK |
F |
Sept. 3, 2016, 10:27 p.m. |
OK |
MS C++ |
TESTS |
47 |
1060 |
256921600 |
|
2700 |
20100413 |
lxn |
F |
Aug. 24, 2016, 7:32 a.m. |
OK |
MS C++ |
TESTS |
47 |
1138 |
53657600 |
|
2700 |
56130182 |
Stepavly |
F |
June 26, 2019, 6:25 p.m. |
OK |
MS C++ 2017 |
TESTS |
47 |
2339 |
57753600 |
|
2700 |
remove filters
Back to search problems