Codeforces Beta Round 23

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
23 Codeforces Beta Round 23 FINISHED False 7200 453135599 July 9, 2010, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3378 ) B Party PROGRAMMING constructive algorithms graphs math 1600

B'n people came to a party. Then those, who had no friends among people at the party, left. Then those, who had exactly 1 friend among those who stayed, left as well. Then those, who had exactly 2, xe2 x80 x893, xe2 x80 x89..., xe2 x80 x89n xe2 x80 x89- xe2 x80 x891 friends among those who stayed by the moment of their leaving, did the same. What is the maximum amount of people that could stay at the party in the end? The first input line contains one number t -- amount of tests (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). Each of the following t lines contains one integer number n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). For each test output in a separate line one number -- the maximum amount of people that could stay in the end.'...

Tutorials

Codeforces Beta Round #23 tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
368193 alexander-nsk94 B March 31, 2011, 3:05 p.m. OK Delphi TESTS 2 10 921600 1600
100722 Shootman B July 24, 2010, 10:43 p.m. OK Delphi TESTS 2 30 819200 1600
97749 chavit B July 9, 2010, 3:20 p.m. OK Delphi TESTS 2 30 819200 1600
97999 GeLo B July 9, 2010, 3:30 p.m. OK Delphi TESTS 2 30 921600 1600
1704785 Ramp B May 19, 2012, 8:03 p.m. OK Delphi TESTS 2 30 9318400 1600
1704784 Ramp B May 19, 2012, 8:01 p.m. OK Delphi TESTS 2 30 9318400 1600
2999418 Mosyagin B Jan. 23, 2013, 10:09 p.m. OK Delphi TESTS 2 31 102400 1600
2631041 Misha100896 B Nov. 23, 2012, 9:45 a.m. OK Delphi TESTS 2 46 0 1600
97997 subscriber B July 9, 2010, 3:30 p.m. OK Delphi TESTS 2 50 819200 1600
97315 tourist B July 9, 2010, 3:05 p.m. OK Delphi TESTS 2 50 819200 1600
2791599 hcts2h B Dec. 18, 2012, 4:19 p.m. OK FPC TESTS 2 15 0 1600
98291 CherryTree B July 9, 2010, 3:46 p.m. OK FPC TESTS 2 30 921600 1600
97983 sillyboy B July 9, 2010, 3:30 p.m. OK FPC TESTS 2 30 921600 1600
97954 tuananh93 B July 9, 2010, 3:29 p.m. OK FPC TESTS 2 30 921600 1600
788290 winterwolf94 B Oct. 21, 2011, 10:05 a.m. OK FPC TESTS 2 30 1024000 1600
100737 hunterx109 B July 26, 2010, 4:14 a.m. OK FPC TESTS 2 30 1024000 1600
98076 iamme181 B July 9, 2010, 3:34 p.m. OK FPC TESTS 2 30 1024000 1600
1835674 aleksandr_severinov B June 28, 2012, 6:47 a.m. OK FPC TESTS 2 30 1228800 1600
243975 vlad107 B Jan. 10, 2011, 4:58 p.m. OK FPC TESTS 2 50 921600 1600
98565 ChuYuxun B July 9, 2010, 4:03 p.m. OK FPC TESTS 2 50 921600 1600
637095 PCCA B Aug. 24, 2011, 2:01 p.m. OK GNU C TESTS 2 60 1331200 1600
98375 HumbertoBarbosa B July 9, 2010, 3:51 p.m. OK GNU C TESTS 2 60 1331200 1600
10638476 hasann B April 9, 2015, 9:59 a.m. OK GNU C TESTS 2 62 0 1600
4277487 lehehe B Aug. 14, 2013, 11:37 a.m. OK GNU C TESTS 2 62 0 1600
3043826 cpy B Feb. 1, 2013, 9:10 a.m. OK GNU C TESTS 2 62 0 1600
23608822 Suvrajit B Jan. 6, 2017, 5:40 p.m. OK GNU C TESTS 2 62 1843200 1600
23553144 vjudge2 B Jan. 5, 2017, 11:03 a.m. OK GNU C TESTS 2 62 1843200 1600
14582604 Don_Vito_Corleone_77 B Dec. 1, 2015, 10:49 a.m. OK GNU C TESTS 2 62 3993600 1600
669471 kawatea B Sept. 5, 2011, 2:11 p.m. OK GNU C TESTS 2 80 1331200 1600
100933 mohammadkotb B Aug. 16, 2010, 3:13 a.m. OK GNU C TESTS 2 80 1331200 1600
17260617 Jonarigvez B April 10, 2016, 6:43 a.m. OK GNU C++ TESTS 2 30 0 1600
4717878 hkglly B Oct. 9, 2013, 2:55 p.m. OK GNU C++ TESTS 2 30 0 1600
796301 DamianS B July 9, 2010, 3:17 p.m. OK GNU C++ TESTS 2 30 1433600 1600
711165 hs484 B Sept. 21, 2011, 7:59 p.m. OK GNU C++ TESTS 2 30 1433600 1600
35787421 luogu_bot4 B Feb. 28, 2018, 2:14 p.m. OK GNU C++ TESTS 2 30 2048000 1600
3539081 H3X B April 14, 2013, 10:59 p.m. OK GNU C++ TESTS 2 31 0 1600
3357782 Nourin_Eka B March 19, 2013, 3:56 p.m. OK GNU C++ TESTS 2 46 0 1600
98003 thocevar B July 9, 2010, 3:31 p.m. OK GNU C++ TESTS 2 50 1331200 1600
97586 hos.lyric B July 9, 2010, 3:14 p.m. OK GNU C++ TESTS 2 50 1331200 1600
1833354 sentinel45 B June 26, 2012, 4:12 p.m. OK GNU C++ TESTS 2 50 1433600 1600
1645983 jiangzhijie B April 30, 2012, 1:05 p.m. OK GNU C++0x TESTS 2 10 3379200 1600
8860591 vjudge3 B Nov. 26, 2014, 2:19 p.m. OK GNU C++0x TESTS 2 62 0 1600
484506 Archon.JK B June 10, 2011, 12:34 a.m. OK GNU C++0x TESTS 2 80 1331200 1600
1739780 problem-solved B May 29, 2012, 1:32 p.m. OK GNU C++0x TESTS 2 80 1433600 1600
6384811 vjudge3 B April 17, 2014, 1:32 p.m. OK GNU C++0x TESTS 2 92 0 1600
7682097 piob B Sept. 4, 2014, 1:12 p.m. OK GNU C++0x TESTS 2 92 0 1600
4264874 ilovealyona B Aug. 11, 2013, 8:40 a.m. OK GNU C++0x TESTS 2 92 0 1600
6566797 hakobyan.tigran B May 7, 2014, 11:35 a.m. OK GNU C++0x TESTS 2 92 409600 1600
2677484 bonism B Nov. 29, 2012, 3:19 p.m. OK GNU C++0x TESTS 2 125 0 1600
3169403 lemur B Feb. 21, 2013, 9:59 p.m. OK GNU C++0x TESTS 2 187 0 1600
26831990 hijibijee B May 4, 2017, 10:17 a.m. OK GNU C11 TESTS 2 872 409600 1600
57379388 samm_vege B July 20, 2019, 1:57 p.m. OK GNU C++11 TESTS 2 60 0 1600
16545598 fitsh B March 6, 2016, 6:16 a.m. OK GNU C++11 TESTS 2 60 0 1600
15278848 kvk1920 B Jan. 10, 2016, 10:29 a.m. OK GNU C++11 TESTS 2 60 0 1600
13874760 TheDarkKnight989 B Oct. 26, 2015, 3:13 p.m. OK GNU C++11 TESTS 2 60 0 1600
66669344 luogu_bot3 B Dec. 12, 2019, 8:35 a.m. OK GNU C++11 TESTS 2 60 0 1600
68030846 ddsmall B Jan. 1, 2020, 9:11 a.m. OK GNU C++11 TESTS 2 60 0 1600
17974886 missAsuzy B May 18, 2016, 4:46 a.m. OK GNU C++11 TESTS 2 60 2048000 1600
23491071 Will.It.Tornado B Jan. 1, 2017, 10:51 p.m. OK GNU C++11 TESTS 2 60 2048000 1600
63111722 lzq41 B Oct. 22, 2019, 7:45 a.m. OK GNU C++11 TESTS 2 62 0 1600
66497558 2020yyf B Dec. 8, 2019, 11:10 a.m. OK GNU C++11 TESTS 2 62 0 1600
29805042 Egor.Lifar B Aug. 26, 2017, 11:27 a.m. OK GNU C++14 TESTS 2 30 0 1600
54066455 Mbfibat B May 13, 2019, 1:44 p.m. OK GNU C++14 TESTS 2 60 0 1600
21227763 syt B Oct. 6, 2016, 6:45 a.m. OK GNU C++14 TESTS 2 60 0 1600
20301103 kondranin B Aug. 31, 2016, 10:49 a.m. OK GNU C++14 TESTS 2 60 0 1600
27323760 SmokeOut B May 24, 2017, 4:58 p.m. OK GNU C++14 TESTS 2 62 0 1600
69829776 vjudge4 B Jan. 30, 2020, 10:08 a.m. OK GNU C++14 TESTS 2 62 0 1600
69829775 vjudge5 B Jan. 30, 2020, 10:08 a.m. OK GNU C++14 TESTS 2 62 0 1600
69184567 Ibn_Ali B Jan. 20, 2020, 11:29 a.m. OK GNU C++14 TESTS 2 62 0 1600
38340738 Hepic_Antony_Skarlatos B May 17, 2018, 7:16 a.m. OK GNU C++14 TESTS 2 62 0 1600
42466341 m1sch3f B Sept. 4, 2018, 4:03 p.m. OK GNU C++14 TESTS 2 62 1638400 1600
59834626 HIT_Attacker B Sept. 1, 2019, 2:55 a.m. OK GNU C++17 TESTS 2 60 0 1600
56270681 palindrome69 B June 29, 2019, 11:57 a.m. OK GNU C++17 TESTS 2 62 0 1600
54437629 vjudge4 B May 21, 2019, 6:48 a.m. OK GNU C++17 TESTS 2 62 0 1600
69660884 vjudge3 B Jan. 28, 2020, 9:21 a.m. OK GNU C++17 TESTS 2 62 0 1600
68100091 .I. B Jan. 3, 2020, 1:51 a.m. OK GNU C++17 TESTS 2 92 0 1600
67502426 RNS_CUS B Dec. 24, 2019, 5:31 a.m. OK GNU C++17 TESTS 2 92 0 1600
67156041 vjudge3 B Dec. 18, 2019, 12:31 p.m. OK GNU C++17 TESTS 2 92 0 1600
63963837 Alfeh B Nov. 1, 2019, 6:23 a.m. OK GNU C++17 TESTS 2 92 0 1600
61440470 Nikita.Teslyuk B Sept. 28, 2019, 6:31 p.m. OK GNU C++17 TESTS 2 92 0 1600
68139356 Apelsinus B Jan. 3, 2020, 8:54 p.m. OK GNU C++17 TESTS 2 92 0 1600
97853 ulyanick B July 9, 2010, 3:25 p.m. OK Haskell TESTS 2 110 3174400 1600
100529 patsp B July 18, 2010, 12:24 p.m. OK Haskell TESTS 2 550 2048000 1600
100935 ulandev B Aug. 16, 2010, 2:33 p.m. OK Haskell TESTS 2 780 2048000 1600
97912 tanakh B July 9, 2010, 3:27 p.m. OK Haskell TESTS 2 810 2048000 1600
98569 Nox B July 9, 2010, 4:04 p.m. OK Java 6 TESTS 2 90 43008000 1600
98066 agus.mw B July 9, 2010, 3:33 p.m. OK Java 6 TESTS 2 110 43008000 1600
100423 winger B July 13, 2010, 1:13 p.m. OK Java 6 TESTS 2 130 42905600 1600
98682 niyaznigmatul B July 9, 2010, 4:12 p.m. OK Java 6 TESTS 2 130 42905600 1600
97341 Egor B July 9, 2010, 3:06 p.m. OK Java 6 TESTS 2 130 42905600 1600
100022 ivan.popelyshev B July 10, 2010, 3:19 p.m. OK Java 6 TESTS 2 130 43008000 1600
100207 segrey B July 11, 2010, 9:17 a.m. OK Java 6 TESTS 2 130 43008000 1600
431665 caustique B May 4, 2011, 3:35 p.m. OK Java 6 TESTS 2 130 43315200 1600
3237102 su_58 B March 4, 2013, 9:10 a.m. OK Java 6 TESTS 2 140 307200 1600
548949 Sammarize B July 16, 2011, 10:08 p.m. OK Java 6 TESTS 2 140 35328000 1600
12878735 kws4679 B Sept. 7, 2015, 1:22 a.m. OK Java 7 TESTS 2 186 0 1600
4440298 Zyflair B Sept. 10, 2013, 6:40 p.m. OK Java 7 TESTS 2 186 102400 1600
17141832 Ereke B April 3, 2016, 8 a.m. OK Java 7 TESTS 2 186 39116800 1600
12706878 fiter B Aug. 26, 2015, 11:26 a.m. OK Java 7 TESTS 2 216 0 1600
5187241 vvenkai B Nov. 21, 2013, 6:38 p.m. OK Java 7 TESTS 2 342 0 1600
4314187 santjuan B Aug. 20, 2013, 1:46 a.m. OK Java 7 TESTS 2 468 0 1600
1944364 c.utkarsh777 B July 27, 2012, 10:14 a.m. OK Java 7 TESTS 2 700 45158400 1600
5312236 cupcup B Nov. 30, 2013, 10:52 a.m. OK Java 7 TESTS 2 904 102400 1600
6939129 omaro B June 21, 2014, 6:28 p.m. OK Java 7 TESTS 2 1558 102400 1600
9506994 TheMonkeyPirate B Jan. 22, 2015, 11:52 p.m. OK Java 7 TESTS 2 1590 0 1600
26490688 catchup B April 19, 2017, 7:34 a.m. OK Java 8 TESTS 2 248 20582400 1600
37377194 totallynotan B April 16, 2018, 3:40 p.m. OK Java 8 TESTS 2 248 20684800 1600
10932204 tarek.nawara B April 29, 2015, 6:13 p.m. OK Java 8 TESTS 2 278 28569600 1600
10213088 YakutovDmitriy B March 8, 2015, 10:20 p.m. OK Java 8 TESTS 2 280 0 1600
23794398 ankeet B Jan. 13, 2017, 9:56 p.m. OK Java 8 TESTS 2 342 20480000 1600
14693565 di_halt B Dec. 8, 2015, 4:46 a.m. OK Java 8 TESTS 2 372 0 1600
22333585 G.Mohamed B Nov. 19, 2016, 4:43 p.m. OK Java 8 TESTS 2 654 0 1600
33462945 RelyOnTheTruth B Dec. 20, 2017, 5:47 p.m. OK Java 8 TESTS 2 1184 21094400 1600
33443576 George_Michael B Dec. 20, 2017, 2:52 a.m. OK Java 8 TESTS 2 1184 21094400 1600
33443513 George_Michael B Dec. 20, 2017, 2:47 a.m. OK Java 8 TESTS 2 1214 21094400 1600
15977754 agat00 B Feb. 12, 2016, 8:05 p.m. OK JavaScript TESTS 2 684 3174400 1600
19958503 vjudge1 B Aug. 19, 2016, 6:28 a.m. OK JavaScript TESTS 2 716 9011200 1600
21460746 ice1000 B Oct. 15, 2016, 3:12 p.m. OK Kotlin TESTS 2 1714 21094400 1600
99177 mtcomscxstart B July 9, 2010, 4:49 p.m. OK Mono C# TESTS 2 200 6656000 1600
98433 fujiyama B July 9, 2010, 3:55 p.m. OK Mono C# TESTS 2 280 5939200 1600
98892 tanzaku B July 9, 2010, 4:30 p.m. OK Mono C# TESTS 2 310 5939200 1600
98530 Tactic B July 9, 2010, 4:01 p.m. OK Mono C# TESTS 2 330 5939200 1600
100653 rainny B July 22, 2010, 8:08 p.m. OK Mono C# TESTS 2 340 5939200 1600
97862 Hadi_Asiaie B July 9, 2010, 3:25 p.m. OK Mono C# TESTS 2 360 5939200 1600
25455843 Mem B March 13, 2017, 2:18 p.m. OK MS C# TESTS 2 154 15564800 1600
18228707 azukun B June 3, 2016, 9:03 a.m. OK MS C# TESTS 2 186 12288000 1600
13853952 antonkorzy B Oct. 25, 2015, 1:11 p.m. OK MS C# TESTS 2 840 2969600 1600
13844267 halka B Oct. 25, 2015, 9:53 a.m. OK MS C# TESTS 2 902 2867200 1600
3081539 abistrigova B Feb. 7, 2013, 3:37 p.m. OK MS C++ TESTS 2 31 0 1600
98258 ballon B July 9, 2010, 3:44 p.m. OK MS C++ TESTS 2 50 1331200 1600
98574 leon_l B July 9, 2010, 4:04 p.m. OK MS C++ TESTS 2 60 1331200 1600
98186 snowingsea B July 9, 2010, 3:40 p.m. OK MS C++ TESTS 2 60 1331200 1600
98625 AlexFetisov B July 9, 2010, 4:07 p.m. OK MS C++ TESTS 2 60 1331200 1600
98904 jbernadas B July 9, 2010, 4:31 p.m. OK MS C++ TESTS 2 60 1740800 1600
5124650 Kazim B Nov. 16, 2013, 10:44 a.m. OK MS C++ TESTS 2 62 0 1600
3828467 tomas.svab B June 6, 2013, 3:41 p.m. OK MS C++ TESTS 2 62 0 1600
2860395 numitus B Dec. 31, 2012, 8:20 a.m. OK MS C++ TESTS 2 62 0 1600
28314749 vjudge5 B July 6, 2017, 2:30 a.m. OK MS C++ TESTS 2 62 2048000 1600
67157970 vjudge5 B Dec. 18, 2019, 1:05 p.m. OK MS C++ 2017 TESTS 2 92 0 1600
67156488 vjudge2 B Dec. 18, 2019, 12:39 p.m. OK MS C++ 2017 TESTS 2 92 0 1600
67158519 vjudge3 B Dec. 18, 2019, 1:14 p.m. OK MS C++ 2017 TESTS 2 122 0 1600
57186454 2018030401051 B July 17, 2019, 8:51 a.m. OK MS C++ 2017 TESTS 2 124 0 1600
56975354 2462478392 B July 13, 2019, 12:01 p.m. OK MS C++ 2017 TESTS 2 124 0 1600
65404048 Prokopiy B Nov. 20, 2019, 1:43 a.m. OK MS C++ 2017 TESTS 2 218 102400 1600
56780168 bourosh B July 10, 2019, 5:49 a.m. OK MS C++ 2017 TESTS 2 904 0 1600
14776124 mahmud2690 B Dec. 12, 2015, 6:10 p.m. OK Perl TESTS 2 156 0 1600
24107717 polphit B Jan. 25, 2017, 8:50 a.m. OK PyPy 2 TESTS 2 1590 22732800 1600
45194826 KeyurJain B Nov. 2, 2018, 6:10 a.m. OK PyPy 3 TESTS 2 528 9830400 1600
61052599 kopok2 B Sept. 22, 2019, 7:02 a.m. OK PyPy 3 TESTS 2 1558 11571200 1600
11601132 poikniok B June 16, 2015, 3:03 a.m. OK PyPy 3 TESTS 2 1682 11673600 1600
11601137 poikniok B June 16, 2015, 3:04 a.m. OK PyPy 3 TESTS 2 1714 11366400 1600
100560 insane B July 19, 2010, 4:35 p.m. OK Python 2 TESTS 2 250 2764800 1600
100874 odomontois B Aug. 4, 2010, 9:07 p.m. OK Python 2 TESTS 2 270 2764800 1600
255945 ftiasch B Jan. 21, 2011, 2:05 a.m. OK Python 2 TESTS 2 270 4403200 1600
100326 jaindsonvs B July 12, 2010, 12:55 p.m. OK Python 2 TESTS 2 280 2764800 1600
99638 fiddler B July 9, 2010, 7 p.m. OK Python 2 TESTS 2 300 4300800 1600
888340 _jte_ B Nov. 23, 2011, 10:48 p.m. OK Python 2 TESTS 2 300 4505600 1600
98459 mib B July 9, 2010, 3:56 p.m. OK Python 2 TESTS 2 310 2764800 1600
1835553 atubo B June 28, 2012, 4:39 a.m. OK Python 2 TESTS 2 340 4608000 1600
5959947 jackowitzd2 B March 8, 2014, 12:34 a.m. OK Python 2 TESTS 2 342 1638400 1600
1241519 Krig B Feb. 28, 2012, 2:41 p.m. OK Python 2 TESTS 2 380 2867200 1600
11601129 poikniok B June 16, 2015, 3:03 a.m. OK Python 3 TESTS 2 466 7270400 1600
11601139 poikniok B June 16, 2015, 3:04 a.m. OK Python 3 TESTS 2 466 7577600 1600
5475350 yugle7 B Dec. 19, 2013, 1:26 p.m. OK Python 3 TESTS 2 530 5222400 1600
11923591 Eeyore B July 4, 2015, 2:09 p.m. OK Python 3 TESTS 2 530 6860800 1600
29605005 Qumeric B Aug. 19, 2017, 5:33 p.m. OK Python 3 TESTS 2 590 4403200 1600
42122125 Mk_Python_v1 B Aug. 26, 2018, 1:02 p.m. OK Python 3 TESTS 2 686 4608000 1600
65265468 Shiv_Yodha B Nov. 17, 2019, 4:50 p.m. OK Python 3 TESTS 2 842 2969600 1600
43258038 LintuStorm B Sept. 22, 2018, 2:02 p.m. OK Python 3 TESTS 2 1154 5324800 1600
40262818 ken B July 13, 2018, 1:17 p.m. OK Python 3 TESTS 2 1184 2355200 1600
68491968 dmitri_the_cat B Jan. 10, 2020, 12:02 p.m. OK Python 3 TESTS 2 1622 0 1600
56014787 sorry_im_smurfing B June 24, 2019, 8:20 p.m. OK Ruby TESTS 2 434 0 1600
15914690 not_bot_but_POT B Feb. 9, 2016, 1:51 p.m. OK Ruby TESTS 2 560 0 1600
300804 watashi B Feb. 23, 2011, 1:58 p.m. OK Ruby TESTS 2 560 12185600 1600
751281 K_operafan B Oct. 8, 2011, 2:31 p.m. OK Ruby TESTS 2 580 3788800 1600
35854233 ______u______ B March 2, 2018, 7:38 p.m. OK Ruby TESTS 2 590 6451200 1600
35853620 ______n______ B March 2, 2018, 7:20 p.m. OK Ruby TESTS 2 590 6451200 1600
35849316 _____i_____ B March 2, 2018, 5:12 p.m. OK Ruby TESTS 2 590 6451200 1600
35849271 _____k_____ B March 2, 2018, 5:11 p.m. OK Ruby TESTS 2 590 6451200 1600
35842552 ______h______ B March 2, 2018, 2:55 p.m. OK Ruby TESTS 2 590 6451200 1600
35842388 ______k______ B March 2, 2018, 2:53 p.m. OK Ruby TESTS 2 590 6451200 1600
65721980 BadDuck B Nov. 25, 2019, 7:41 p.m. OK Scala TESTS 2 904 0 1600

remove filters

Back to search problems