Codeforces Round 289 (Div. 2, ACM ICPC Rules)

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
509 Codeforces Round 289 (Div. 2, ACM ICPC Rules) FINISHED False 10800 309117599 Jan. 31, 2015, noon

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1802 ) E Pretty Song PROGRAMMING math strings 2000

B"When Sasha was studying in the seventh grade, he started listening to music a lot. In order to evaluate which songs he likes more, he introduced the notion of the song's prettiness. The title of the song is a word consisting of uppercase Latin letters. The prettiness of the song is the prettiness of its title. Let's define the simple prettiness of a word as the ratio of the number of vowels in the word to the number of all letters in the word. Let's define the prettiness of a word as the sum of simple prettiness of all the substrings of the word. More formally, let's define the function vowel(c) which is equal to 1, if c is a vowel, and to 0 otherwise. Let si be the i-th character of string s, and si..j be the substring of word s, staring at the i-th character and ending at the j-th character (sisi xe2 x80 x89+ xe2 x80 x891... sj, i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89j). Then the simple prettiness of s is defined by the formula: The prettiness of s equals Find the prettiness of the given song title. We assume that the vowels are I, xe2 x80 x89E, xe2 x80 x89A, xe2 x80 x89O, xe2 x80 x89U, xe2 x80 x89Y. The input contains a single string s (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895 xc2 xb7105) -- the title of the song. Print the prettiness of the song with the absolute or relative error of at most 10 xe2 x80 x89- xe2 x80 x896. In the first sample all letters are vowels. The simple prettiness of each substring is 1. The word of length 7 has 28 substrings. So, the prettiness of the song equals to 28."...

Tutorials

Tutorial CodeForces Round 289 (Div.2) (Second Winter Computer Camp Selection 2015)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
48557145 Anushi1998 E Jan. 19, 2019, 5:52 a.m. OK Clang++17 Diagnostics TESTS 27 155 24473600 2000
9867968 misterfourtytwo E Feb. 16, 2015, 8:58 a.m. OK Delphi TESTS 27 93 3072000 2000
9658150 AHTuTTuTyX E Jan. 31, 2015, 6:31 p.m. OK Delphi TESTS 27 93 6041600 2000
9654903 ruban E Jan. 31, 2015, 2:47 p.m. OK Delphi TESTS 27 93 41164800 2000
9867962 misterfourtytwo E Feb. 16, 2015, 8:58 a.m. OK FPC TESTS 27 15 3379200 2000
9667023 Irkutsk_ISRU E Feb. 1, 2015, 3:10 p.m. OK FPC TESTS 27 15 3379200 2000
11183834 chenjb E May 21, 2015, 3:02 a.m. OK FPC TESTS 27 30 3788800 2000
11183785 vjudge4 E May 21, 2015, 2:49 a.m. OK FPC TESTS 27 30 3788800 2000
9657114 Valerich E Jan. 31, 2015, 3:59 p.m. OK FPC TESTS 27 30 6041600 2000
9651211 ilovemaohieudong_98 E Jan. 31, 2015, 1:49 p.m. OK FPC TESTS 27 30 9420800 2000
9720225 BenderRodriguez E Feb. 4, 2015, 6 p.m. OK FPC TESTS 27 30 16384000 2000
9736268 lugo E Feb. 6, 2015, 12:38 p.m. OK FPC TESTS 27 31 2560000 2000
9745079 vancaodk E Feb. 7, 2015, 1:38 p.m. OK FPC TESTS 27 31 3379200 2000
9650244 DeWitt E Jan. 31, 2015, 1:35 p.m. OK FPC TESTS 27 31 3891200 2000
22032378 vjudge1 E Nov. 4, 2016, 11:07 a.m. OK GNU C TESTS 27 15 512000 2000
9654012 diamond_boy E Jan. 31, 2015, 2:33 p.m. OK GNU C TESTS 27 15 2457600 2000
9672334 sigkill-uw E Feb. 2, 2015, 6:14 a.m. OK GNU C TESTS 27 15 4505600 2000
9656619 120302508 E Jan. 31, 2015, 3:34 p.m. OK GNU C TESTS 27 15 8499200 2000
21639959 bhaukaal E Oct. 21, 2016, 11:31 a.m. OK GNU C TESTS 27 30 512000 2000
9742057 marche147 E Feb. 7, 2015, 5:12 a.m. OK GNU C TESTS 27 30 4505600 2000
9662531 chandak E Feb. 1, 2015, 7:24 a.m. OK GNU C TESTS 27 31 4505600 2000
9662065 NOJVJ E Feb. 1, 2015, 6:23 a.m. OK GNU C++ TESTS 27 15 2355200 2000
9708811 rootial E Feb. 4, 2015, 4:58 a.m. OK GNU C++ TESTS 27 15 2560000 2000
9695950 yanaz E Feb. 3, 2015, 5:35 a.m. OK GNU C++ TESTS 27 15 2560000 2000
9678021 Yuuki_Asuna E Feb. 2, 2015, 4:16 p.m. OK GNU C++ TESTS 27 15 2560000 2000
9664627 ned_chu E Feb. 1, 2015, 11:27 a.m. OK GNU C++ TESTS 27 15 2560000 2000
9663562 zh0ng E Feb. 1, 2015, 9:16 a.m. OK GNU C++ TESTS 27 15 2560000 2000
9661224 xiaopingguo E Feb. 1, 2015, 3:54 a.m. OK GNU C++ TESTS 27 15 2560000 2000
9652120 NeverSayNever E Jan. 31, 2015, 2:03 p.m. OK GNU C++ TESTS 27 15 2969600 2000
9658001 Miracle E Jan. 31, 2015, 6:09 p.m. OK GNU C++ TESTS 27 15 3379200 2000
12124757 BadDuck E July 20, 2015, 3:29 a.m. OK GNU C++ TESTS 27 15 3584000 2000
9670183 budro E Feb. 1, 2015, 10:24 p.m. OK GNU C++0x TESTS 27 15 1024000 2000
9664817 mentalist E Feb. 1, 2015, 11:50 a.m. OK GNU C++0x TESTS 27 15 2355200 2000
9661328 TCgogogo E Feb. 1, 2015, 4:17 a.m. OK GNU C++0x TESTS 27 15 2355200 2000
10184869 mgemaakbar E March 7, 2015, 1:48 a.m. OK GNU C++0x TESTS 27 15 2560000 2000
9660852 Final_Proud E Feb. 1, 2015, 2:28 a.m. OK GNU C++0x TESTS 27 15 2560000 2000
9659481 rr_ E Jan. 31, 2015, 9:21 p.m. OK GNU C++0x TESTS 27 15 3072000 2000
9796066 I_love_Hoang_Yen E Feb. 11, 2015, 7:33 a.m. OK GNU C++0x TESTS 27 15 3584000 2000
9784044 berendeanicolae E Feb. 9, 2015, 9:05 p.m. OK GNU C++0x TESTS 27 15 4300800 2000
9777621 xxxyyyzzz E Feb. 9, 2015, 7:12 a.m. OK GNU C++0x TESTS 27 15 4403200 2000
9671921 yuanyaoz E Feb. 2, 2015, 4:56 a.m. OK GNU C++0x TESTS 27 15 4505600 2000
57752197 rainboy E July 25, 2019, 3:09 p.m. OK GNU C11 TESTS 27 31 4505600 2000
12460878 vjudge2 E Aug. 11, 2015, 3:16 a.m. OK GNU C++11 TESTS 27 15 2560000 2000
12460881 CyberZHG E Aug. 11, 2015, 3:16 a.m. OK GNU C++11 TESTS 27 15 2560000 2000
25475214 vjudge4 E March 14, 2017, 2:23 p.m. OK GNU C++11 TESTS 27 15 4096000 2000
18779399 GKHack E June 29, 2016, 8:04 a.m. OK GNU C++11 TESTS 27 15 4505600 2000
15600444 Walid_Amin E Jan. 26, 2016, 7:29 p.m. OK GNU C++11 TESTS 27 15 5017600 2000
15464053 Deemo E Jan. 21, 2016, 7:02 a.m. OK GNU C++11 TESTS 27 15 5017600 2000
16841440 .tx E March 20, 2016, 3:10 p.m. OK GNU C++11 TESTS 27 15 5017600 2000
16727568 zhangguangxuan99 E March 15, 2016, 1:13 p.m. OK GNU C++11 TESTS 27 15 6553600 2000
12288839 lzw4896s E July 31, 2015, 8:29 a.m. OK GNU C++11 TESTS 27 15 6553600 2000
21308879 chaitanya100 E Oct. 9, 2016, 3:54 a.m. OK GNU C++11 TESTS 27 15 6553600 2000
36257178 Shuvro77 E March 13, 2018, 5:32 p.m. OK GNU C++14 TESTS 27 15 2457600 2000
29516899 lilala E Aug. 17, 2017, 3:08 a.m. OK GNU C++14 TESTS 27 15 2560000 2000
31697568 fofao_funk E Oct. 25, 2017, 3:06 a.m. OK GNU C++14 TESTS 27 15 2560000 2000
21559320 NguyenKhoiDinh NGUYEN_THANH_LOI TrungChi E Oct. 18, 2016, 6:58 a.m. OK GNU C++14 TESTS 27 15 2969600 2000
28382831 obuzzz E July 9, 2017, 7:39 a.m. OK GNU C++14 TESTS 27 15 4403200 2000
31934329 under_dogg E Oct. 31, 2017, 9:40 p.m. OK GNU C++14 TESTS 27 15 5120000 2000
28276093 123tourguide E July 4, 2017, 9 a.m. OK GNU C++14 TESTS 27 15 7168000 2000
25407601 wrinx E March 11, 2017, 2:03 p.m. OK GNU C++14 TESTS 27 15 7782400 2000
27004901 vjudge1 E May 11, 2017, 1:43 a.m. OK GNU C++14 TESTS 27 15 8499200 2000
27004908 Gealo E May 11, 2017, 1:45 a.m. OK GNU C++14 TESTS 27 15 8499200 2000
35730341 0w1 E Feb. 26, 2018, 11:52 a.m. OK GNU C++17 TESTS 27 15 4915200 2000
55101231 khaled.farouk_2 E June 4, 2019, 8:26 p.m. OK GNU C++17 TESTS 27 30 3072000 2000
57347367 quake0 E July 20, 2019, 12:46 a.m. OK GNU C++17 TESTS 27 31 1024000 2000
64799888 HoaPhat1 E Nov. 13, 2019, 2:13 p.m. OK GNU C++17 TESTS 27 31 2457600 2000
46824881 BlueDiamond E Dec. 9, 2018, 5:39 p.m. OK GNU C++17 TESTS 27 31 3072000 2000
68043999 Phortox E Jan. 1, 2020, 3:36 p.m. OK GNU C++17 TESTS 27 31 5017600 2000
39980730 NullByte E July 5, 2018, 10:30 a.m. OK GNU C++17 TESTS 27 31 5017600 2000
39815118 Martin53 E July 1, 2018, 7:45 a.m. OK GNU C++17 TESTS 27 31 5017600 2000
45283798 samraat1 E Nov. 4, 2018, 3:19 p.m. OK GNU C++17 TESTS 27 31 5120000 2000
39965574 Rtn_e E July 4, 2018, 7:33 p.m. OK GNU C++17 TESTS 27 31 5120000 2000
61455759 120405217 E Sept. 29, 2019, 6:10 a.m. OK Go TESTS 27 31 11878400 2000
61456157 120405217 E Sept. 29, 2019, 6:21 a.m. OK Go TESTS 27 46 11878400 2000
61456872 120405217 E Sept. 29, 2019, 6:43 a.m. OK Go TESTS 27 46 11878400 2000
61456221 120405217 E Sept. 29, 2019, 6:23 a.m. OK Go TESTS 27 46 11878400 2000
9652097 mukeshmit E Jan. 31, 2015, 2:02 p.m. OK Java 6 TESTS 27 108 0 2000
9672021 marcose18 E Feb. 2, 2015, 5:19 a.m. OK Java 6 TESTS 27 124 0 2000
9664664 PrakharJain E Feb. 1, 2015, 11:30 a.m. OK Java 6 TESTS 27 124 15872000 2000
9653508 Azat_Yusupov E Jan. 31, 2015, 2:25 p.m. OK Java 7 TESTS 27 77 0 2000
9654496 pitfall E Jan. 31, 2015, 2:41 p.m. OK Java 7 TESTS 27 77 102400 2000
9703889 mkirsche E Feb. 3, 2015, 4:36 p.m. OK Java 7 TESTS 27 78 0 2000
9650055 AkshajK E Jan. 31, 2015, 1:32 p.m. OK Java 7 TESTS 27 78 0 2000
9649687 alexyz E Jan. 31, 2015, 1:27 p.m. OK Java 7 TESTS 27 78 0 2000
9676693 I_love_Malika E Feb. 2, 2015, 2:08 p.m. OK Java 7 TESTS 27 92 0 2000
9674861 sultan.of.swing E Feb. 2, 2015, 11:19 a.m. OK Java 7 TESTS 27 92 0 2000
9732402 megaspazz E Feb. 6, 2015, 12:17 a.m. OK Java 7 TESTS 27 93 0 2000
9688224 alibaba E Feb. 2, 2015, 6:12 p.m. OK Java 7 TESTS 27 93 0 2000
9657436 GreenOrchids E Jan. 31, 2015, 4:36 p.m. OK Java 7 TESTS 27 93 0 2000
66097213 pulkit1411 E Dec. 1, 2019, 8:04 a.m. OK Java 8 TESTS 27 109 0 2000
27721664 Kammola E June 11, 2017, 1:28 p.m. OK Java 8 TESTS 27 109 0 2000
15761351 Abkreno94 E Feb. 3, 2016, 3:10 a.m. OK Java 8 TESTS 27 109 0 2000
27721695 Kammola E June 11, 2017, 1:31 p.m. OK Java 8 TESTS 27 124 0 2000
9795746 TranCongDuy E Feb. 11, 2015, 6:38 a.m. OK Java 8 TESTS 27 124 0 2000
9708901 stan E Feb. 4, 2015, 5:19 a.m. OK Java 8 TESTS 27 124 0 2000
9657185 dwoolley3 E Jan. 31, 2015, 4:05 p.m. OK Java 8 TESTS 27 124 0 2000
56487110 unicorn20141 E July 3, 2019, 6:59 p.m. OK Java 8 TESTS 27 124 2662400 2000
12688440 akorzun E Aug. 24, 2015, 7:37 p.m. OK Java 8 TESTS 27 140 0 2000
9707210 Pimpom E Feb. 3, 2015, 10:42 p.m. OK Java 8 TESTS 27 140 0 2000
10308123 Reshetnikov_Ivan E March 17, 2015, 8:29 a.m. OK JavaScript TESTS 27 62 9318400 2000
52079713 hongquanntct E March 31, 2019, 11:40 a.m. OK Mono C# TESTS 27 78 10444800 2000
25060989 og.kostya E Feb. 26, 2017, 5:25 p.m. OK MS C# TESTS 27 62 14848000 2000
9675301 Reddel E Feb. 2, 2015, 12:05 p.m. OK MS C# TESTS 27 77 5836800 2000
9649473 azukun E Jan. 31, 2015, 1:24 p.m. OK MS C# TESTS 27 78 73728000 2000
23795536 Ermiar E Jan. 14, 2017, 12:58 a.m. OK MS C# TESTS 27 93 19763200 2000
12076982 vjudge5 E July 16, 2015, 2:03 a.m. OK MS C++ TESTS 27 15 2560000 2000
9700022 Carups E Feb. 3, 2015, 11:26 a.m. OK MS C++ TESTS 27 15 3788800 2000
9781538 LVA007 E Feb. 9, 2015, 3:48 p.m. OK MS C++ TESTS 27 15 4505600 2000
12069031 vjudge2 E July 15, 2015, 9:07 a.m. OK MS C++ TESTS 27 15 4505600 2000
10058444 Death_Knight_DK E Feb. 28, 2015, 1:09 a.m. OK MS C++ TESTS 27 15 4505600 2000
10033195 Partizan E Feb. 26, 2015, 2:04 p.m. OK MS C++ TESTS 27 15 4505600 2000
10552945 dotorya E April 2, 2015, 4:29 p.m. OK MS C++ TESTS 27 15 8499200 2000
12073213 qsmoonxs E July 15, 2015, 3:21 p.m. OK MS C++ TESTS 27 15 8499200 2000
9729959 Alladdin E Feb. 5, 2015, 5:08 p.m. OK MS C++ TESTS 27 15 9420800 2000
9656171 Rostislav_the_great E Jan. 31, 2015, 3:13 p.m. OK MS C++ TESTS 27 15 10342400 2000
9870009 Wizmann E Feb. 16, 2015, 10:53 a.m. OK PyPy 2 TESTS 27 171 21401600 2000
10214078 raymond13513 E March 9, 2015, 2:41 a.m. OK PyPy 2 TESTS 27 187 8294400 2000
9862199 Wizmann E Feb. 15, 2015, 5:12 p.m. OK PyPy 2 TESTS 27 342 30105600 2000
9862194 Wizmann E Feb. 15, 2015, 5:12 p.m. OK PyPy 2 TESTS 27 514 30617600 2000
10156740 dr.ikros E March 5, 2015, 6:21 a.m. OK PyPy 3 TESTS 27 187 19251200 2000
9936009 PrimuS E Feb. 20, 2015, 10:12 a.m. OK PyPy 3 TESTS 27 295 22118400 2000
24569710 ecnarag E Feb. 10, 2017, 12:49 p.m. OK PyPy 3 TESTS 27 296 43827200 2000
9713114 neelamgt E Feb. 4, 2015, 11:48 a.m. OK Python 2 TESTS 27 421 13209600 2000
9870007 Wizmann E Feb. 16, 2015, 10:53 a.m. OK Python 2 TESTS 27 467 12288000 2000
9648433 nwi E Jan. 31, 2015, 1:10 p.m. OK Python 2 TESTS 27 514 13107200 2000
9782397 Eibe E Feb. 9, 2015, 5:26 p.m. OK Python 2 TESTS 27 545 25497600 2000
27354203 i_m_sanjog E May 26, 2017, 11:05 a.m. OK Python 2 TESTS 27 654 16896000 2000
9653954 leeaa E Jan. 31, 2015, 2:32 p.m. OK Python 2 TESTS 27 670 13209600 2000
21246049 Neumann E Oct. 6, 2016, 9:21 p.m. OK Python 2 TESTS 27 670 16896000 2000
9649806 vfleaking E Jan. 31, 2015, 1:28 p.m. OK Python 2 TESTS 27 794 16896000 2000
9671385 orailly E Feb. 2, 2015, 2:55 a.m. OK Python 3 TESTS 27 389 20889600 2000
59363313 lightning_shandian E Aug. 23, 2019, 4:11 p.m. OK Python 3 TESTS 27 421 1638400 2000
10156763 dr.ikros E March 5, 2015, 6:23 a.m. OK Python 3 TESTS 27 436 12902400 2000
35884307 ______u______ E March 3, 2018, 1:09 p.m. OK Python 3 TESTS 27 468 11161600 2000
35884035 ______n______ E March 3, 2018, 1:03 p.m. OK Python 3 TESTS 27 468 11161600 2000
35883267 _____k_____ E March 3, 2018, 12:51 p.m. OK Python 3 TESTS 27 468 11161600 2000
35882890 _____i_____ E March 3, 2018, 12:45 p.m. OK Python 3 TESTS 27 468 11161600 2000
35872695 ______h______ E March 3, 2018, 7:16 a.m. OK Python 3 TESTS 27 468 11161600 2000
35872585 ______k______ E March 3, 2018, 7:14 a.m. OK Python 3 TESTS 27 468 11161600 2000
35871883 ______i______ E March 3, 2018, 6:58 a.m. OK Python 3 TESTS 27 468 11161600 2000
9661623 instantkill E Feb. 1, 2015, 5:23 a.m. OK Ruby TESTS 27 529 53862400 2000
9661588 instantkill E Feb. 1, 2015, 5:19 a.m. OK Ruby TESTS 27 529 53862400 2000
9661563 instantkill E Feb. 1, 2015, 5:14 a.m. OK Ruby TESTS 27 607 99123200 2000
9661435 instantkill E Feb. 1, 2015, 4:47 a.m. OK Ruby TESTS 27 655 101171200 2000
9671483 mysterion E Feb. 2, 2015, 3:12 a.m. OK Scala TESTS 27 249 102400 2000

remove filters

Back to search problems