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 |
895
|
Codeforces Round 448 (Div. 2) |
FINISHED |
False |
7200 |
225467663 |
Nov. 26, 2017, 4:05 p.m. |
Problems
B'Petya was late for the lesson too. The teacher gave him an additional task. For some array a Petya should find the number of different ways to select non-empty subset of elements from it in such a way that their product is equal to a square of some integer. Two ways are considered different if sets of indexes of elements chosen by these ways are different. Since the answer can be very large, you should find the answer modulo 109 xe2 x80 x89+ xe2 x80 x897. First line contains one integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of elements in the array. Second line contains n integers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8970) -- the elements of the array. Print one integer -- the number of different ways to choose some elements so that their product is a square of a certain integer modulo 109 xe2 x80 x89+ xe2 x80 x897. In first sample product of elements chosen by any way is 1 and 1 xe2 x80 x89= xe2 x80 x8912. So the answer is 24 xe2 x80 x89- xe2 x80 x891 xe2 x80 x89= xe2 x80 x8915. In second sample there are six different ways to choose elements so that their product is 4, and only one way so that their product is 16. So the answer is 6 xe2 x80 x89+ xe2 x80 x891 xe2 x80 x89= xe2 x80 x897. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
43823512 |
hellomath |
C |
Oct. 5, 2018, 10:35 a.m. |
OK |
Clang++17 Diagnostics |
TESTS |
61 |
2667 |
150220800 |
|
2000 |
32784883 |
ruban |
C |
Nov. 29, 2017, 3:41 p.m. |
OK |
Delphi |
TESTS |
61 |
2761 |
239820800 |
|
2000 |
34729881 |
rabbitcxk |
C |
Jan. 31, 2018, 7:42 a.m. |
OK |
FPC |
TESTS |
61 |
62 |
9318400 |
|
2000 |
34730731 |
rabbitcxk |
C |
Jan. 31, 2018, 8:17 a.m. |
OK |
FPC |
TESTS |
61 |
77 |
8908800 |
|
2000 |
33922009 |
slavik228 |
C |
Jan. 5, 2018, 12:50 p.m. |
OK |
FPC |
TESTS |
61 |
264 |
10854400 |
|
2000 |
33922040 |
slavik228 |
C |
Jan. 5, 2018, 12:52 p.m. |
OK |
FPC |
TESTS |
61 |
265 |
10854400 |
|
2000 |
32990780 |
AsahiKasugano |
C |
Dec. 7, 2017, 2:47 a.m. |
OK |
FPC |
TESTS |
61 |
265 |
14233600 |
|
2000 |
32785253 |
MrLolthe1st |
C |
Nov. 29, 2017, 3:57 p.m. |
OK |
FPC |
TESTS |
61 |
390 |
34508800 |
|
2000 |
32698302 |
ImForbiddenToSayILoveYou |
C |
Nov. 27, 2017, 2:27 a.m. |
OK |
FPC |
TESTS |
61 |
390 |
34508800 |
|
2000 |
32755631 |
__peossp |
C |
Nov. 28, 2017, 4:16 p.m. |
OK |
FPC |
TESTS |
61 |
483 |
19251200 |
|
2000 |
58254949 |
chaorenhaha |
C |
Aug. 4, 2019, 9:33 a.m. |
OK |
FPC |
TESTS |
61 |
795 |
151654400 |
|
2000 |
32784895 |
ruban |
C |
Nov. 29, 2017, 3:41 p.m. |
OK |
FPC |
TESTS |
61 |
1512 |
238899200 |
|
2000 |
32680931 |
sgtlaugh |
C |
Nov. 26, 2017, 4:40 p.m. |
OK |
GNU C |
TESTS |
61 |
187 |
157184000 |
|
2000 |
32709063 |
Voja03 |
C |
Nov. 27, 2017, 8:31 a.m. |
OK |
GNU C |
TESTS |
61 |
248 |
157184000 |
|
2000 |
32759413 |
shivanya |
C |
Nov. 28, 2017, 7:39 p.m. |
OK |
GNU C |
TESTS |
61 |
717 |
18636800 |
|
2000 |
40302360 |
vjudge4 |
C |
July 14, 2018, 3:08 a.m. |
OK |
GNU C++ |
TESTS |
61 |
31 |
0 |
|
2000 |
39669133 |
DavidLei |
C |
June 26, 2018, 7:57 a.m. |
OK |
GNU C++ |
TESTS |
61 |
31 |
0 |
|
2000 |
39668160 |
DavidLei |
C |
June 26, 2018, 7:13 a.m. |
OK |
GNU C++ |
TESTS |
61 |
31 |
0 |
|
2000 |
38650206 |
vjudge3 |
C |
May 27, 2018, 7:48 a.m. |
OK |
GNU C++ |
TESTS |
61 |
31 |
409600 |
|
2000 |
34224016 |
XzzF |
C |
Jan. 16, 2018, 2:07 p.m. |
OK |
GNU C++ |
TESTS |
61 |
31 |
1945600 |
|
2000 |
32783669 |
Sunnat |
C |
Nov. 29, 2017, 2:47 p.m. |
OK |
GNU C++ |
TESTS |
61 |
31 |
1945600 |
|
2000 |
32805163 |
cy1999 |
C |
Nov. 30, 2017, 12:35 p.m. |
OK |
GNU C++ |
TESTS |
61 |
31 |
2457600 |
|
2000 |
32739398 |
droidlyx86 |
C |
Nov. 28, 2017, 3:42 a.m. |
OK |
GNU C++ |
TESTS |
61 |
31 |
2969600 |
|
2000 |
32786856 |
ToErr |
C |
Nov. 29, 2017, 5:26 p.m. |
OK |
GNU C++ |
TESTS |
61 |
31 |
3276800 |
|
2000 |
37859607 |
vjudge1 |
C |
May 3, 2018, 11 a.m. |
OK |
GNU C++ |
TESTS |
61 |
31 |
5222400 |
|
2000 |
32896472 |
Jori |
C |
Dec. 3, 2017, 10:37 a.m. |
OK |
GNU C++11 |
TESTS |
61 |
15 |
2457600 |
|
2000 |
43096170 |
maratonando3 |
C |
Sept. 20, 2018, 12:08 a.m. |
OK |
GNU C++11 |
TESTS |
61 |
31 |
0 |
|
2000 |
57171412 |
luogu_bot4 |
C |
July 17, 2019, 3:17 a.m. |
OK |
GNU C++11 |
TESTS |
61 |
31 |
409600 |
|
2000 |
40979054 |
ReaLNero1 |
C |
July 30, 2018, 4:54 p.m. |
OK |
GNU C++11 |
TESTS |
61 |
31 |
409600 |
|
2000 |
32697113 |
dragonslayerintraining |
C |
Nov. 26, 2017, 11:57 p.m. |
OK |
GNU C++11 |
TESTS |
61 |
31 |
1945600 |
|
2000 |
34200850 |
Dreamchaser101 |
C |
Jan. 15, 2018, 3:35 p.m. |
OK |
GNU C++11 |
TESTS |
61 |
31 |
2048000 |
|
2000 |
32947256 |
Megumi_ |
C |
Dec. 5, 2017, 11:55 a.m. |
OK |
GNU C++11 |
TESTS |
61 |
31 |
2048000 |
|
2000 |
32947175 |
Megumi_ |
C |
Dec. 5, 2017, 11:52 a.m. |
OK |
GNU C++11 |
TESTS |
61 |
31 |
2048000 |
|
2000 |
32742707 |
edward108 |
C |
Nov. 28, 2017, 7:15 a.m. |
OK |
GNU C++11 |
TESTS |
61 |
31 |
2048000 |
|
2000 |
32717254 |
rajat1603 |
C |
Nov. 27, 2017, 2:09 p.m. |
OK |
GNU C++11 |
TESTS |
61 |
31 |
2048000 |
|
2000 |
32780099 |
cxt |
C |
Nov. 29, 2017, 12:17 p.m. |
OK |
GNU C++14 |
TESTS |
61 |
31 |
1945600 |
|
2000 |
32807644 |
krist7599555 |
C |
Nov. 30, 2017, 2:09 p.m. |
OK |
GNU C++14 |
TESTS |
61 |
31 |
2048000 |
|
2000 |
33515290 |
F.A.H.I.M |
C |
Dec. 22, 2017, 5:08 p.m. |
OK |
GNU C++14 |
TESTS |
61 |
31 |
2252800 |
|
2000 |
32693816 |
F.A.H.I.M |
C |
Nov. 26, 2017, 7:32 p.m. |
OK |
GNU C++14 |
TESTS |
61 |
31 |
2252800 |
|
2000 |
32734833 |
achm |
C |
Nov. 27, 2017, 8:31 p.m. |
OK |
GNU C++14 |
TESTS |
61 |
31 |
2355200 |
|
2000 |
32710038 |
Marco_L_T |
C |
Nov. 27, 2017, 9:13 a.m. |
OK |
GNU C++14 |
TESTS |
61 |
31 |
2355200 |
|
2000 |
32709971 |
Marco_L_T |
C |
Nov. 27, 2017, 9:10 a.m. |
OK |
GNU C++14 |
TESTS |
61 |
31 |
2355200 |
|
2000 |
32681299 |
Egor.Lifar |
C |
Nov. 26, 2017, 4:42 p.m. |
OK |
GNU C++14 |
TESTS |
61 |
31 |
2867200 |
|
2000 |
32720962 |
fine_ |
C |
Nov. 27, 2017, 4:30 p.m. |
OK |
GNU C++14 |
TESTS |
61 |
31 |
3072000 |
|
2000 |
32695904 |
Cro-Marmot |
C |
Nov. 26, 2017, 9:43 p.m. |
OK |
GNU C++14 |
TESTS |
61 |
31 |
6860800 |
|
2000 |
63093016 |
Tomasz_Zyla |
C |
Oct. 21, 2019, 7:16 p.m. |
OK |
GNU C++17 |
TESTS |
61 |
46 |
0 |
|
2000 |
59517603 |
vjudge2 |
C |
Aug. 26, 2019, 10:43 a.m. |
OK |
GNU C++17 |
TESTS |
61 |
46 |
0 |
|
2000 |
57168386 |
vjudge3 |
C |
July 17, 2019, 1:23 a.m. |
OK |
GNU C++17 |
TESTS |
61 |
46 |
409600 |
|
2000 |
57035078 |
Vanishment |
C |
July 14, 2019, 3:19 p.m. |
OK |
GNU C++17 |
TESTS |
61 |
46 |
409600 |
|
2000 |
58945787 |
luogu_bot1 |
C |
Aug. 17, 2019, 8:53 a.m. |
OK |
GNU C++17 |
TESTS |
61 |
46 |
819200 |
|
2000 |
50620911 |
N9199 |
C |
March 1, 2019, 1:15 a.m. |
OK |
GNU C++17 |
TESTS |
61 |
46 |
2048000 |
|
2000 |
61279422 |
gupta_samarth |
C |
Sept. 25, 2019, 4:30 p.m. |
OK |
GNU C++17 |
TESTS |
61 |
61 |
0 |
|
2000 |
67062190 |
cloudy_happy |
C |
Dec. 17, 2019, 9:35 a.m. |
OK |
GNU C++17 |
TESTS |
61 |
61 |
0 |
|
2000 |
52128752 |
_overrated_ |
C |
March 31, 2019, 7:10 p.m. |
OK |
GNU C++17 |
TESTS |
61 |
61 |
0 |
|
2000 |
42755097 |
2014CAIS01 |
C |
Sept. 11, 2018, 6:17 a.m. |
OK |
GNU C++17 |
TESTS |
61 |
61 |
307200 |
|
2000 |
32993043 |
Planaria |
C |
Dec. 7, 2017, 6:13 a.m. |
OK |
GNU C++17 Diagnostics |
TESTS |
61 |
2370 |
102502400 |
|
2000 |
32709964 |
filo |
C |
Nov. 27, 2017, 9:09 a.m. |
OK |
Go |
TESTS |
61 |
546 |
25088000 |
|
2000 |
32732126 |
alexrcoleman |
C |
Nov. 27, 2017, 5:54 p.m. |
OK |
Java 8 |
TESTS |
61 |
124 |
20684800 |
|
2000 |
32719698 |
alexrcoleman |
C |
Nov. 27, 2017, 3:53 p.m. |
OK |
Java 8 |
TESTS |
61 |
124 |
20684800 |
|
2000 |
35107734 |
iamavalon |
C |
Feb. 9, 2018, 11:21 p.m. |
OK |
Java 8 |
TESTS |
61 |
155 |
20889600 |
|
2000 |
32906160 |
-turo |
C |
Dec. 3, 2017, 6:59 p.m. |
OK |
Java 8 |
TESTS |
61 |
171 |
20889600 |
|
2000 |
32691093 |
dusty.and.rusty |
C |
Nov. 26, 2017, 5:57 p.m. |
OK |
Java 8 |
TESTS |
61 |
217 |
26726400 |
|
2000 |
33044469 |
Zatsepin_Vl |
C |
Dec. 9, 2017, 9:22 a.m. |
OK |
Java 8 |
TESTS |
61 |
311 |
21094400 |
|
2000 |
33077082 |
hulk_man |
C |
Dec. 10, 2017, 9:47 a.m. |
OK |
Java 8 |
TESTS |
61 |
311 |
27750400 |
|
2000 |
38007905 |
RussianBot |
C |
May 7, 2018, 10:40 p.m. |
OK |
Java 8 |
TESTS |
61 |
327 |
21094400 |
|
2000 |
32776940 |
donli |
C |
Nov. 29, 2017, 9:49 a.m. |
OK |
Java 8 |
TESTS |
61 |
374 |
268390400 |
|
2000 |
39787832 |
xodiac |
C |
June 30, 2018, 4:36 a.m. |
OK |
Java 8 |
TESTS |
61 |
436 |
200601600 |
|
2000 |
51694940 |
hongquanntct |
C |
March 22, 2019, 3:28 p.m. |
OK |
Mono C# |
TESTS |
61 |
1091 |
34508800 |
|
2000 |
51692800 |
hongquanntct |
C |
March 22, 2019, 3:22 p.m. |
OK |
Mono C# |
TESTS |
61 |
1169 |
25907200 |
|
2000 |
42740136 |
GustavK |
C |
Sept. 10, 2018, 3:48 p.m. |
OK |
Mono C# |
TESTS |
61 |
1185 |
25907200 |
|
2000 |
33085252 |
lionvs13 |
C |
Dec. 10, 2017, 8 p.m. |
OK |
MS C# |
TESTS |
61 |
1356 |
36966400 |
|
2000 |
32687853 |
mircea85 |
C |
Nov. 26, 2017, 5:27 p.m. |
OK |
MS C# |
TESTS |
61 |
3353 |
14848000 |
|
2000 |
32735052 |
AleksanderBalobanov |
C |
Nov. 27, 2017, 8:45 p.m. |
OK |
MS C++ |
TESTS |
61 |
31 |
6860800 |
|
2000 |
57020620 |
vjudge1 |
C |
July 14, 2019, 1:52 p.m. |
OK |
MS C++ |
TESTS |
61 |
46 |
819200 |
|
2000 |
32692994 |
philologist |
C |
Nov. 26, 2017, 7:08 p.m. |
OK |
MS C++ |
TESTS |
61 |
78 |
2867200 |
|
2000 |
32685208 |
LLI_E_P_JI_O_K |
C |
Nov. 26, 2017, 5:04 p.m. |
OK |
MS C++ |
TESTS |
61 |
343 |
24166400 |
|
2000 |
63991844 |
vjudge2 |
C |
Nov. 1, 2019, 1:23 p.m. |
OK |
MS C++ |
TESTS |
61 |
467 |
150016000 |
|
2000 |
63990962 |
vjudge2 |
C |
Nov. 1, 2019, 1:07 p.m. |
OK |
MS C++ |
TESTS |
61 |
467 |
173875200 |
|
2000 |
63990621 |
vjudge2 |
C |
Nov. 1, 2019, 1:01 p.m. |
OK |
MS C++ |
TESTS |
61 |
467 |
174284800 |
|
2000 |
63990849 |
vjudge3 |
C |
Nov. 1, 2019, 1:05 p.m. |
OK |
MS C++ |
TESTS |
61 |
467 |
174284800 |
|
2000 |
57733865 |
vjudge2 |
C |
July 25, 2019, 9:21 a.m. |
OK |
MS C++ |
TESTS |
61 |
468 |
18022400 |
|
2000 |
63988290 |
vjudge3 |
C |
Nov. 1, 2019, 12:24 p.m. |
OK |
MS C++ |
TESTS |
61 |
482 |
174284800 |
|
2000 |
63524954 |
vjudge5 |
C |
Oct. 27, 2019, 4:58 a.m. |
OK |
MS C++ 2017 |
TESTS |
61 |
498 |
6758400 |
|
2000 |
32696810 |
Darooha |
C |
Nov. 26, 2017, 11:24 p.m. |
OK |
Ocaml |
TESTS |
61 |
109 |
4505600 |
|
2000 |
36465701 |
tastymath75025 |
C |
March 21, 2018, 10:36 p.m. |
OK |
PyPy 2 |
TESTS |
61 |
1606 |
118681600 |
|
2000 |
61130397 |
wrong_lemma |
C |
Sept. 23, 2019, 2:19 p.m. |
OK |
PyPy 3 |
TESTS |
61 |
186 |
6348800 |
|
2000 |
32806937 |
xlk |
C |
Nov. 30, 2017, 1:41 p.m. |
OK |
Python 2 |
TESTS |
61 |
108 |
8396800 |
|
2000 |
38989425 |
Ali_Pi |
C |
June 6, 2018, 9:16 a.m. |
OK |
Python 2 |
TESTS |
61 |
155 |
4300800 |
|
2000 |
32678538 |
Lewin |
C |
Nov. 26, 2017, 4:24 p.m. |
OK |
Python 2 |
TESTS |
61 |
936 |
8396800 |
|
2000 |
32697651 |
WNG |
C |
Nov. 27, 2017, 1:12 a.m. |
OK |
Python 2 |
TESTS |
61 |
2432 |
31948800 |
|
2000 |
35498609 |
yugle7 |
C |
Feb. 19, 2018, 6:19 p.m. |
OK |
Python 3 |
TESTS |
61 |
93 |
10649600 |
|
2000 |
34116220 |
denny_sem |
C |
Jan. 12, 2018, 11:53 p.m. |
OK |
Python 3 |
TESTS |
61 |
93 |
10649600 |
|
2000 |
33037715 |
DASmirnov |
C |
Dec. 8, 2017, 11:01 p.m. |
OK |
Python 3 |
TESTS |
61 |
93 |
10649600 |
|
2000 |
32697765 |
komendart |
C |
Nov. 27, 2017, 1:26 a.m. |
OK |
Python 3 |
TESTS |
61 |
93 |
10649600 |
|
2000 |
32697827 |
komendart |
C |
Nov. 27, 2017, 1:34 a.m. |
OK |
Python 3 |
TESTS |
61 |
93 |
11059200 |
|
2000 |
35485866 |
yugle7 |
C |
Feb. 19, 2018, 5:03 p.m. |
OK |
Python 3 |
TESTS |
61 |
108 |
11059200 |
|
2000 |
42142097 |
Mk_Python_v1 |
C |
Aug. 27, 2018, 6:17 a.m. |
OK |
Python 3 |
TESTS |
61 |
140 |
5120000 |
|
2000 |
33803433 |
Jiburiru |
C |
Dec. 30, 2017, 7:31 a.m. |
OK |
Python 3 |
TESTS |
61 |
140 |
10649600 |
|
2000 |
32681963 |
waterfalls |
C |
Nov. 26, 2017, 4:47 p.m. |
OK |
Python 3 |
TESTS |
61 |
779 |
10649600 |
|
2000 |
32753972 |
Hillmouse |
C |
Nov. 28, 2017, 2:56 p.m. |
OK |
Rust |
TESTS |
61 |
451 |
12390400 |
|
2000 |
33445371 |
meteor |
C |
Dec. 20, 2017, 5:10 a.m. |
OK |
Rust |
TESTS |
61 |
748 |
20070400 |
|
2000 |
33445780 |
meteor |
C |
Dec. 20, 2017, 5:36 a.m. |
OK |
Rust |
TESTS |
61 |
748 |
21094400 |
|
2000 |
34792358 |
hatoo |
C |
Feb. 1, 2018, 6:48 a.m. |
OK |
Rust |
TESTS |
61 |
1278 |
10342400 |
|
2000 |
33620009 |
sl0th |
C |
Dec. 25, 2017, 2:58 p.m. |
OK |
Rust |
TESTS |
61 |
2870 |
18227200 |
|
2000 |
33619838 |
sl0th |
C |
Dec. 25, 2017, 2:50 p.m. |
OK |
Rust |
TESTS |
61 |
2979 |
18227200 |
|
2000 |
remove filters
Back to search problems