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.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
| 639
|
VK Cup 2016 - Round 1 |
FINISHED |
False |
7200 |
317222723 |
March 28, 2016, 4:35 p.m. |
Problems
Limak is a smart brown bear who loves chemistry, reactions and transforming elements. In Bearland (Limak's home) there are n elements, numbered 1 through n . There are also special machines, that can transform elements. Each machine is described by two integers a i , b i representing two elements, not necessarily distinct. One can use a machine either to transform an element a i to b i or to transform b i to a i . Machines in Bearland aren't very resistant and each of them can be used at most once . It is possible that a i = b i and that many machines have the same pair a i , b i . Radewoosh is Limak's biggest enemy and rival. He wants to test Limak in the chemistry. They will meet tomorrow and both of them will bring all their machines. Limak has m machines but he doesn't know much about his enemy. They agreed Radewoosh will choose two distinct elements, let's denote them as x and y . Limak will be allowed to use both his and Radewoosh's machines. He may use zero or more (maybe even all) machines to achieve the goal, each machine at most once. Limak will start from an element x and his task will be to first get an element y and then to again get an element x — then we say that he succeeds . After that Radewoosh would agree that Limak knows the chemistry (and Radewoosh would go away). Radewoosh likes some particular non-empty set of favorite elements and he will choose x , y from that set. Limak doesn't know exactly which elements are in the set and also he doesn't know what machines Radewoosh has. Limak has heard q gossips (queries) though and each of them consists of Radewoosh's machines and favorite elements. For each gossip Limak wonders if he would be able to succeed tomorrow for every pair x , y chosen from the set of favorite elements. If yes then print " YES " (without the quotes). But if there exists a pair ( x , y ) from the given set that Limak wouldn't be able to succeed then you should print " NO " (without the quotes). The first line contains |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
28470700 |
Ajatar |
F |
July 12, 2017, 10:29 a.m. |
OK |
GNU C++ |
TESTS |
77 |
654 |
47513600 |
|
3300 |
|
40984891 |
ReaLNero1 |
F |
July 30, 2018, 7:38 p.m. |
OK |
GNU C++ |
TESTS |
77 |
670 |
97484800 |
|
3300 |
|
17714644 |
Owaski |
F |
May 5, 2016, 5:43 a.m. |
OK |
GNU C++ |
TESTS |
77 |
670 |
99532800 |
|
3300 |
|
28284436 |
apt123 |
F |
July 4, 2017, 3:49 p.m. |
OK |
GNU C++ |
TESTS |
77 |
717 |
71782400 |
|
3300 |
|
28467367 |
zhan8855 |
F |
July 12, 2017, 8:19 a.m. |
OK |
GNU C++ |
TESTS |
77 |
872 |
167014400 |
|
3300 |
|
17396413 |
Arturia |
F |
April 20, 2016, 8:26 a.m. |
OK |
GNU C++ |
TESTS |
77 |
873 |
117760000 |
|
3300 |
|
18911239 |
AkaneSasu |
F |
July 6, 2016, 4:09 a.m. |
OK |
GNU C++ |
TESTS |
77 |
935 |
115712000 |
|
3300 |
|
20891090 |
jiyutian |
F |
Sept. 24, 2016, 3:04 p.m. |
OK |
GNU C++ |
TESTS |
77 |
982 |
91238400 |
|
3300 |
|
20813097 |
lichang |
F |
Sept. 22, 2016, 8:51 a.m. |
OK |
GNU C++ |
TESTS |
77 |
1153 |
86937600 |
|
3300 |
|
17084991 |
programmer_KZA |
F |
April 1, 2016, 5:15 a.m. |
OK |
GNU C++ |
TESTS |
77 |
1200 |
89190400 |
|
3300 |
|
63116334 |
cjy2003 |
F |
Oct. 22, 2019, 9:28 a.m. |
OK |
GNU C++11 |
TESTS |
77 |
451 |
78028800 |
|
3300 |
|
64345675 |
zjczzzjczjczzzjc |
F |
Nov. 6, 2019, 6:08 a.m. |
OK |
GNU C++11 |
TESTS |
77 |
514 |
98304000 |
|
3300 |
|
64280458 |
Lagoon_ |
F |
Nov. 5, 2019, 1:21 a.m. |
OK |
GNU C++11 |
TESTS |
77 |
545 |
104345600 |
|
3300 |
|
62841021 |
zjczzzjczjczzzjc |
F |
Oct. 18, 2019, 2:41 a.m. |
OK |
GNU C++11 |
TESTS |
77 |
561 |
98304000 |
|
3300 |
|
66274846 |
XieRujian |
F |
Dec. 4, 2019, 2:13 p.m. |
OK |
GNU C++11 |
TESTS |
77 |
701 |
78745600 |
|
3300 |
|
64730587 |
cuizhuyefei |
F |
Nov. 12, 2019, 8:16 a.m. |
OK |
GNU C++11 |
TESTS |
77 |
702 |
141619200 |
|
3300 |
|
65494491 |
Starlit |
F |
Nov. 21, 2019, 4:01 p.m. |
OK |
GNU C++11 |
TESTS |
77 |
717 |
60928000 |
|
3300 |
|
17179346 |
jkxing |
F |
April 6, 2016, 2 a.m. |
OK |
GNU C++11 |
TESTS |
77 |
717 |
78438400 |
|
3300 |
|
63281865 |
ilnil |
F |
Oct. 24, 2019, 8:58 a.m. |
OK |
GNU C++11 |
TESTS |
77 |
732 |
51302400 |
|
3300 |
|
69937871 |
Doube_Suzerain |
F |
Feb. 1, 2020, 4:55 a.m. |
OK |
GNU C++11 |
TESTS |
77 |
732 |
97587200 |
|
3300 |
|
66374113 |
yhx-12243 |
F |
Dec. 6, 2019, 1:21 a.m. |
OK |
GNU C++14 |
TESTS |
77 |
733 |
109363200 |
|
3300 |
|
68820058 |
PinkRabbit |
F |
Jan. 14, 2020, 5:09 p.m. |
OK |
GNU C++14 |
TESTS |
77 |
857 |
67379200 |
|
3300 |
|
65299594 |
Minamoto |
F |
Nov. 18, 2019, 12:46 p.m. |
OK |
GNU C++14 |
TESTS |
77 |
857 |
158720000 |
|
3300 |
|
68821435 |
PinkRabbit |
F |
Jan. 14, 2020, 5:35 p.m. |
OK |
GNU C++14 |
TESTS |
77 |
888 |
67686400 |
|
3300 |
|
47710055 |
dwt |
F |
Dec. 30, 2018, 2:11 a.m. |
OK |
GNU C++14 |
TESTS |
77 |
951 |
72089600 |
|
3300 |
|
64303659 |
nealchen |
F |
Nov. 5, 2019, 10:51 a.m. |
OK |
GNU C++14 |
TESTS |
77 |
966 |
104857600 |
|
3300 |
|
63265939 |
zsyzsy |
F |
Oct. 24, 2019, 12:04 a.m. |
OK |
GNU C++14 |
TESTS |
77 |
982 |
60211200 |
|
3300 |
|
20815450 |
Steven_Wu |
F |
Sept. 22, 2016, 11:18 a.m. |
OK |
GNU C++14 |
TESTS |
77 |
1263 |
104755200 |
|
3300 |
|
20815412 |
Steven_Wu |
F |
Sept. 22, 2016, 11:15 a.m. |
OK |
GNU C++14 |
TESTS |
77 |
1263 |
104755200 |
|
3300 |
|
66141276 |
Created_equal |
F |
Dec. 1, 2019, 2:30 p.m. |
OK |
GNU C++14 |
TESTS |
77 |
1278 |
93081600 |
|
3300 |
|
68299575 |
skip1978 |
F |
Jan. 6, 2020, 5:43 a.m. |
OK |
GNU C++17 |
TESTS |
77 |
763 |
232243200 |
|
3300 |
|
69832186 |
gongsuidashen |
F |
Jan. 30, 2020, 10:51 a.m. |
OK |
GNU C++17 |
TESTS |
77 |
780 |
104140800 |
|
3300 |
|
68061969 |
Tgiwx |
F |
Jan. 2, 2020, 4:59 a.m. |
OK |
GNU C++17 |
TESTS |
77 |
967 |
93286400 |
|
3300 |
|
63645361 |
jiangly |
F |
Oct. 28, 2019, 9:29 a.m. |
OK |
GNU C++17 |
TESTS |
77 |
1185 |
66457600 |
|
3300 |
|
36661448 |
papa3 |
F |
March 27, 2018, 8 a.m. |
OK |
GNU C++17 |
TESTS |
77 |
1200 |
170598400 |
|
3300 |
|
63770701 |
jiangly |
F |
Oct. 30, 2019, 7:53 a.m. |
OK |
GNU C++17 |
TESTS |
77 |
1201 |
66764800 |
|
3300 |
|
63826203 |
alan_cty |
F |
Oct. 30, 2019, 1:28 p.m. |
OK |
GNU C++17 |
TESTS |
77 |
1528 |
73932800 |
|
3300 |
|
52491392 |
ainta |
F |
April 8, 2019, 11:49 a.m. |
OK |
GNU C++17 |
TESTS |
77 |
1699 |
170188800 |
|
3300 |
|
57959893 |
Benq |
F |
July 29, 2019, 9:16 p.m. |
OK |
GNU C++17 |
TESTS |
77 |
1715 |
61440000 |
|
3300 |
|
69527011 |
jah_melon |
F |
Jan. 25, 2020, 3:31 p.m. |
OK |
GNU C++17 |
TESTS |
77 |
2168 |
79564800 |
|
3300 |
|
17033325 |
mmaxio |
F |
March 30, 2016, 12:08 p.m. |
OK |
Java 8 |
TESTS |
77 |
2698 |
225689600 |
|
3300 |
|
17033298 |
mmaxio |
F |
March 30, 2016, 12:06 p.m. |
OK |
Java 8 |
TESTS |
77 |
3088 |
225792000 |
|
3300 |
|
17154871 |
Los_Angelos_Laycurse |
F |
April 4, 2016, 8:22 a.m. |
OK |
MS C++ |
TESTS |
77 |
1668 |
131686400 |
|
3300 |
remove filters
Back to search problems