School Team Contest 1 (Winter Computer School 2010/11)

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
39 School Team Contest 1 (Winter Computer School 2010/11) FINISHED False 18000 456878987 Oct. 24, 2010, 7:10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 137 ) G Inverse Function PROGRAMMING implementation 2500

B'Petya wrote a programme on C++ that calculated a very interesting function f(n). Petya ran the program with a certain value of n and went to the kitchen to have some tea. The history has no records concerning how long the program had been working. By the time Petya returned, it had completed the calculations and had the result. However while Petya was drinking tea, a sly virus managed to destroy the input file so that Petya can 't figure out for which value of n the program was run. Help Petya, carry out the inverse function! Mostly, the program consists of a function in C++ with the following simplified syntax: The whitespaces in a operatorSequence are optional. Thus, we have a function, in which body there are two kinds of operators. There is the operator "return arithmExpr;" that returns the value of the expression as the value of the function, and there is the conditional operator "if (logicalExpr) return arithmExpr;" that returns the value of the arithmetical expression when and only when the logical expression is true. Guaranteed that no other constructions of C++ language -- cycles, assignment operators, nested conditional operators etc, and other variables except the n parameter are used in the function. All the constants are integers in the interval [0..32767]. The operators are performed sequentially. After the function has returned a value other operators in the sequence are not performed. Arithmetical expressions are performed taking into consideration the standard priority of the operations. It means that first all the products that are part of the sum are calculated. During the calculation of the products the operations of multiplying and division are performed from the left to the right. Then the summands are summed, and the addition and the subtraction are also performed from the left to the right. Operations ">" (more), "<" (less) and "==" (equals) also have standard meanings. Now you 've got to pay close attention! The program is compiled '...

Tutorials

School Team Contest #1 (Winter Computer School 2010/11): Problem K Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
256200 agul G Jan. 21, 2011, 1 p.m. OK Delphi TESTS 41 60 18944000 2500
162039 tourist G Oct. 24, 2010, 9:23 a.m. OK Delphi TESTS 41 60 18944000 2500
13827751 130705009 G Oct. 24, 2015, 4:29 p.m. OK GNU C++ TESTS 41 30 102400 2500
3559545 numitus G April 18, 2013, 9 a.m. OK GNU C++ TESTS 41 46 4403200 2500
165111 SeMeKh G Nov. 12, 2010, 8:08 p.m. OK GNU C++ TESTS 41 50 1536000 2500
614159 strongoier G Aug. 18, 2011, 8:42 a.m. OK GNU C++ TESTS 41 60 1536000 2500
18044441 RNS_CUS G May 23, 2016, 1:42 p.m. OK GNU C++ TESTS 41 60 2355200 2500
162765 goo.gl_SsAhv 907th soundsdx G Oct. 24, 2010, 10:43 a.m. OK GNU C++ TESTS 41 60 33075200 2500
2171993 TankEngineer G Sept. 15, 2012, 11:02 a.m. OK GNU C++ TESTS 41 78 1638400 2500
614157 strongoier G Aug. 18, 2011, 8:39 a.m. OK GNU C++ TESTS 41 80 1536000 2500
11338172 Amr_Hassan G May 28, 2015, 7:33 p.m. OK GNU C++ TESTS 41 92 1126400 2500
5896059 zhj G Feb. 4, 2014, 2:14 p.m. OK GNU C++ TESTS 41 92 37478400 2500
16688957 ITDOI INVWVZ G March 13, 2016, 9:23 a.m. OK GNU C++11 TESTS 41 30 102400 2500
17083221 freebsdx G April 1, 2016, 1:06 a.m. OK GNU C++11 TESTS 41 30 2355200 2500
57907547 lopare G July 28, 2019, 6:18 p.m. OK GNU C++11 TESTS 41 62 102400 2500
41004986 ReaLNero1 G July 31, 2018, 9:11 a.m. OK GNU C++11 TESTS 41 62 102400 2500
11961006 HellKitsune G July 7, 2015, 2:11 p.m. OK GNU C++11 TESTS 41 92 102400 2500
43023036 zhouyuyang G Sept. 18, 2018, 6:45 a.m. OK GNU C++11 TESTS 41 92 409600 2500
16429963 Y-MP G Feb. 29, 2016, 5:20 p.m. OK GNU C++11 TESTS 41 124 0 2500
17220803 2016 G April 8, 2016, 2:47 a.m. OK GNU C++11 TESTS 41 2276 2252800 2500
36252372 Patrick_y G March 13, 2018, 2:32 p.m. OK GNU C++11 TESTS 41 3056 2252800 2500
23376997 Ali.Pi G Dec. 28, 2016, 11:56 a.m. OK GNU C++14 TESTS 41 30 2048000 2500
66367780 hpfdf ysyshtc G Dec. 5, 2019, 8:13 p.m. OK GNU C++14 TESTS 41 62 11264000 2500
48560471 Mandir_Wahi_Banayenge G Jan. 19, 2019, 7:09 a.m. OK GNU C++14 TESTS 41 92 23347200 2500
49044234 SYury G Jan. 27, 2019, 8:01 a.m. OK GNU C++14 TESTS 41 248 2764800 2500
41434866 dorostmishe G Aug. 10, 2018, 2:30 p.m. OK GNU C++14 TESTS 41 342 409600 2500
31321948 irkstepanov G Oct. 14, 2017, 7:17 p.m. OK GNU C++14 TESTS 41 404 307200 2500
30099619 Cmise G Sept. 5, 2017, 12:47 p.m. OK GNU C++14 TESTS 41 560 65433600 2500
50536905 kenimo G Feb. 26, 2019, 4:09 p.m. OK GNU C++17 TESTS 41 62 409600 2500
50628463 tnakao G March 1, 2019, 7:37 a.m. OK GNU C++17 TESTS 41 92 102400 2500
50611525 tnakao G Feb. 28, 2019, 5:08 p.m. OK GNU C++17 TESTS 41 92 102400 2500
552150 sunnywkn G July 20, 2011, 8:56 a.m. OK Java 6 TESTS 41 130 43110400 2500
469507 RAVEman G May 24, 2011, 9:20 p.m. OK Java 6 TESTS 41 140 35328000 2500
552151 sunnywkn G July 20, 2011, 8:57 a.m. OK Java 6 TESTS 41 140 43110400 2500
552152 sunnywkn G July 20, 2011, 8:57 a.m. OK Java 6 TESTS 41 160 43110400 2500
163661 SpookyCookie Medium G Oct. 24, 2010, 12:24 p.m. OK Java 6 TESTS 41 560 55193600 2500
163957 Anton_Lunyov G Oct. 24, 2010, 7:17 p.m. OK MS C++ TESTS 41 50 1536000 2500
164792 AleX G Oct. 31, 2010, 12:58 p.m. OK MS C++ TESTS 41 60 1536000 2500
163722 KhaustovPavel eik0u kirr G Oct. 24, 2010, 12:56 p.m. OK MS C++ TESTS 41 200 29798400 2500
163425 kirr KhaustovPavel eik0u G Oct. 24, 2010, noon OK MS C++ TESTS 41 200 31539200 2500
164553 Deamon G Oct. 28, 2010, 7:18 p.m. OK MS C++ TESTS 41 300 1433600 2500
162640 KADR G Oct. 24, 2010, 10:29 a.m. OK MS C++ TESTS 41 1810 1536000 2500
163365 maksay G Oct. 24, 2010, 11:54 a.m. OK MS C++ TESTS 41 2130 1536000 2500
162657 Ruslan G Oct. 24, 2010, 10:31 a.m. OK MS C++ TESTS 41 3800 1536000 2500
163402 Gassa naagi G Oct. 24, 2010, 11:57 a.m. OK Python 2 TESTS 41 3410 3788800 2500
163474 Gassa naagi G Oct. 24, 2010, 12:03 p.m. OK Python 2 TESTS 41 3450 3788800 2500
573579 sevenkplus G July 31, 2011, 5:40 a.m. OK Python 2 TESTS 41 3780 3379200 2500
164168 aropan Tkach1024 G Oct. 25, 2010, 1:43 p.m. OK Python 2 TESTS 41 4780 11673600 2500
56015366 sorry_im_smurfing G June 24, 2019, 8:44 p.m. OK Ruby TESTS 41 1028 1331200 2500
420315 watashi G April 30, 2011, 8:19 p.m. OK Ruby TESTS 41 1220 5324800 2500
35864178 ______u______ G March 2, 2018, 11:03 p.m. OK Ruby TESTS 41 1340 7680000 2500
35864000 ______n______ G March 2, 2018, 10:58 p.m. OK Ruby TESTS 41 1340 7680000 2500
35863596 _____i_____ G March 2, 2018, 10:50 p.m. OK Ruby TESTS 41 1340 7680000 2500
35863546 _____k_____ G March 2, 2018, 10:48 p.m. OK Ruby TESTS 41 1340 7680000 2500
35860537 ______k______ G March 2, 2018, 9:44 p.m. OK Ruby TESTS 41 1340 7680000 2500
35860522 ______h______ G March 2, 2018, 9:44 p.m. OK Ruby TESTS 41 1340 7680000 2500
35860012 ______i______ G March 2, 2018, 9:32 p.m. OK Ruby TESTS 41 1340 7680000 2500
35858465 ______M______ G March 2, 2018, 9 p.m. OK Ruby TESTS 41 1340 7680000 2500

remove filters

Back to search problems