Bubble Cup 11 - Finals [Online Mirror, Div. 1]

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
1045 Bubble Cup 11 - Finals [Online Mirror, Div. 1] FINISHED False 18000 199567463 Sept. 22, 2018, 10:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4587 ) I Palindrome Pairs PROGRAMMING hashing strings 1700

B'After learning a lot about space exploration, a little girl named Ana wants to change the subject. Ana is a girl who loves palindromes (string that can be read the same backwards as forward). She has learned how to check for a given string whether it 's a palindrome or not, but soon she grew tired of this problem, so she came up with a more interesting one and she needs your help to solve it: You are given an array of strings which consist of only small letters of the alphabet. Your task is to find how many palindrome pairs are there in the array. A palindrome pair is a pair of strings such that the following condition holds: at least one permutation of the concatenation of the two strings is a palindrome. In other words, if you have two strings, let 's say "aab" and "abcac", and you concatenate them into "aababcac", we have to check if there exists a permutation of this new string such that it is a palindrome (in this case there exists the permutation "aabccbaa"). Two pairs are considered different if the strings are located on different indices. The pair of strings with indices (i,j) is considered the same as the pair (j,i) . The first line contains a positive integer N ( 1 <= N <= 100 ,000 ), representing the length of the input array. Eacg of the next N lines contains a string (consisting of lowercase English letters from 'a ' to 'z ') -- an element of the input array. The total number of characters in the input array will be less than 1 ,000 ,000 . Output one number, representing how many palindrome pairs there are in the array. The first example: The second example: '...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
44907473 SYury I Oct. 26, 2018, 12:08 p.m. OK GNU C11 TESTS 30 171 2867200 1700
55649803 mHr029 I June 16, 2019, 2 p.m. OK GNU C11 TESTS 30 296 3584000 1700
55649759 mHr029 I June 16, 2019, 1:59 p.m. OK GNU C11 TESTS 30 1793 3584000 1700
43244848 snowflake I Sept. 22, 2018, 11:09 a.m. OK GNU C++11 TESTS 30 62 25395200 1700
50571810 Pankin I Feb. 27, 2019, 3:48 p.m. OK GNU C++11 TESTS 30 78 2048000 1700
50564277 quackable I Feb. 27, 2019, 12:28 p.m. OK GNU C++11 TESTS 30 78 2048000 1700
49245539 vjudge5 I Jan. 31, 2019, 12:29 p.m. OK GNU C++11 TESTS 30 78 2662400 1700
43372823 Random_Rating I Sept. 24, 2018, 3:16 p.m. OK GNU C++11 TESTS 30 78 4403200 1700
47806538 luogu_bot1 I Jan. 1, 2019, 7:45 a.m. OK GNU C++11 TESTS 30 78 16896000 1700
43354091 luogu_bot2 I Sept. 24, 2018, 5:01 a.m. OK GNU C++11 TESTS 30 78 135884800 1700
43468314 jackraft I Sept. 26, 2018, 8:01 p.m. OK GNU C++11 TESTS 30 93 1740800 1700
49241601 vjudge5 I Jan. 31, 2019, 10:36 a.m. OK GNU C++11 TESTS 30 93 2662400 1700
48322758 Dragon_fxl I Jan. 13, 2019, 10:14 a.m. OK GNU C++11 TESTS 30 93 2662400 1700
43277468 ecnerwala I Sept. 23, 2018, 1:21 a.m. OK GNU C++14 TESTS 30 46 1843200 1700
44751540 ReaLNero1 I Oct. 23, 2018, 8:12 p.m. OK GNU C++14 TESTS 30 61 2457600 1700
45449773 SterbenCC1 I Nov. 8, 2018, 3:19 p.m. OK GNU C++14 TESTS 30 77 2355200 1700
44084094 HumptyDumpty I Oct. 10, 2018, 4:31 p.m. OK GNU C++14 TESTS 30 77 2355200 1700
43243594 Zhukov_Dmitry I Sept. 22, 2018, 10:56 a.m. OK GNU C++14 TESTS 30 78 7884800 1700
43630083 mingzzc I Oct. 1, 2018, 4:31 a.m. OK GNU C++14 TESTS 30 93 2867200 1700
48455176 gfonn I Jan. 16, 2019, 12:23 p.m. OK GNU C++14 TESTS 30 93 11878400 1700
48455117 gfonn I Jan. 16, 2019, 12:22 p.m. OK GNU C++14 TESTS 30 93 11878400 1700
43471041 ljupche98 I Sept. 26, 2018, 10:09 p.m. OK GNU C++14 TESTS 30 108 1843200 1700
45291254 I_love_chickpea I Nov. 4, 2018, 6:26 p.m. OK GNU C++14 TESTS 30 109 2560000 1700
46755584 mtmohim I Dec. 8, 2018, 11:32 a.m. OK GNU C++17 TESTS 30 61 2457600 1700
55684059 themechanicalcoder I June 17, 2019, 2:33 p.m. OK GNU C++17 TESTS 30 62 1843200 1700
55308241 giorgisaxe I June 8, 2019, 3:52 p.m. OK GNU C++17 TESTS 30 78 3481600 1700
43245998 Golovanov399 I Sept. 22, 2018, 11:22 a.m. OK GNU C++17 TESTS 30 92 180326400 1700
43247542 randygx I Sept. 22, 2018, 11:39 a.m. OK GNU C++17 TESTS 30 93 1740800 1700
43264925 fedoseev.timofey I Sept. 22, 2018, 4:02 p.m. OK GNU C++17 TESTS 30 93 1843200 1700
45423666 wjli I Nov. 7, 2018, 6:58 p.m. OK GNU C++17 TESTS 30 93 2355200 1700
49986077 vjudge2 I Feb. 16, 2019, 10:36 a.m. OK GNU C++17 TESTS 30 93 3174400 1700
49974291 vjudge3 I Feb. 16, 2019, 4:59 a.m. OK GNU C++17 TESTS 30 93 3174400 1700
44164103 alexey.sharapow04 I Oct. 11, 2018, 10:56 p.m. OK GNU C++17 TESTS 30 93 134758400 1700
68737997 synapse I Jan. 13, 2020, 9:34 p.m. OK Go TESTS 30 124 4505600 1700
68738039 vjudge5 I Jan. 13, 2020, 9:37 p.m. OK Go TESTS 30 139 4505600 1700
55533022 JCKG I June 13, 2019, 2:41 p.m. OK Java 8 TESTS 30 202 1228800 1700
43243562 uwi I Sept. 22, 2018, 10:56 a.m. OK Java 8 TESTS 30 218 0 1700
43243317 aviroop123 amnesiac_dusk ak_97 I Sept. 22, 2018, 10:52 a.m. OK Java 8 TESTS 30 280 4608000 1700
43692560 CrazyFlower I Oct. 2, 2018, 2:58 p.m. OK Java 8 TESTS 30 280 16588800 1700
59399225 Jarik I Aug. 24, 2019, 11:29 a.m. OK Java 8 TESTS 30 296 0 1700
57153655 vidhansharma01 I July 16, 2019, 3:49 p.m. OK Java 8 TESTS 30 326 0 1700
54579844 TWO_POINTER I May 25, 2019, 3:46 a.m. OK Java 8 TESTS 30 342 0 1700
47295877 kusomushi I Dec. 20, 2018, 11:56 a.m. OK Java 8 TESTS 30 343 3276800 1700
44046665 arvind_rvs I Oct. 9, 2018, 5:31 p.m. OK Java 8 TESTS 30 358 0 1700
43249398 palayutm I Sept. 22, 2018, 12:01 p.m. OK Java 8 TESTS 30 373 0 1700
44915833 scorpiowf I Oct. 26, 2018, 3:27 p.m. OK MS C++ TESTS 30 124 1843200 1700
43945456 valyanarezka I Oct. 7, 2018, 1:30 p.m. OK MS C++ TESTS 30 327 1740800 1700
60958876 vjudge5 I Sept. 21, 2019, 4:24 a.m. OK MS C++ TESTS 30 904 29388800 1700
66676611 vjudge5 I Dec. 12, 2019, 11:33 a.m. OK MS C++ 2017 TESTS 30 826 29798400 1700
44363638 LordVader I Oct. 15, 2018, 3:38 p.m. OK PyPy 3 TESTS 30 935 8294400 1700
46041342 omarnvidia I Nov. 21, 2018, 8:05 p.m. OK PyPy 3 TESTS 30 998 9420800 1700
46130184 yagami3566 I Nov. 23, 2018, 11:16 p.m. OK PyPy 3 TESTS 30 1263 19763200 1700
45989025 Firepaw I Nov. 20, 2018, 8:36 a.m. OK PyPy 3 TESTS 30 1466 14643200 1700
43545065 wangkan2001 I Sept. 28, 2018, 6:48 p.m. OK Python 2 TESTS 30 1434 5324800 1700
50998306 Annvv I March 8, 2019, 5:27 a.m. OK Python 3 TESTS 30 1185 4403200 1700
44351594 mikbinkowski I Oct. 15, 2018, 10:26 a.m. OK Python 3 TESTS 30 1201 3891200 1700
50998162 Annvv I March 8, 2019, 5:22 a.m. OK Python 3 TESTS 30 1357 4403200 1700
46538820 sparshgunner12 I Dec. 3, 2018, 10:46 a.m. OK Rust TESTS 30 93 4710400 1700

remove filters

Back to search problems