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.
Problems
B"Helen studies functional programming and she is fascinated with a concept of higher order functions -- functions that are taking other functions as parameters. She decides to generalize the concept of the function order and to test it on some examples. For her study, she defines a simple grammar of types. In her grammar, a type non-terminal T is defined as one of the following grammar productions, together with textrm{order}(T) , defining an order of the corresponding type: Helen asks for your help in writing a program that computes an order of the given type. The single line of the input contains a string consisting of characters '(', ')', '-', and '>' that describes a type that is valid according to the grammar from the problem statement. The length of the line is at most 10^4 characters. Print a single integer -- the order of the given type. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
130469209 |
fmwviormv Reza_H MeHdi.KaZemI8 |
H |
Oct. 1, 2021, 1:50 p.m. |
OK |
GNU C11 |
TESTS |
26 |
15 |
3788800 |
|
|
130474470 |
nor TechNite |
H |
Oct. 1, 2021, 2:36 p.m. |
OK |
GNU C11 |
TESTS |
26 |
31 |
3788800 |
|
|
130486698 |
chirs241097 |
H |
Oct. 1, 2021, 4:39 p.m. |
OK |
GNU C11 |
TESTS |
26 |
46 |
3788800 |
|
|
130480998 |
angelskid |
H |
Oct. 1, 2021, 3:39 p.m. |
OK |
GNU C++14 |
TESTS |
26 |
15 |
204800 |
|
|
130475597 |
krchmar |
H |
Oct. 1, 2021, 2:45 p.m. |
OK |
GNU C++14 |
TESTS |
26 |
15 |
3686400 |
|
|
130466599 |
sjimed Onjo PipelinePunch |
H |
Oct. 1, 2021, 1:27 p.m. |
OK |
GNU C++14 |
TESTS |
26 |
15 |
3788800 |
|
|
130509853 |
pinog |
H |
Oct. 1, 2021, 11:09 p.m. |
OK |
GNU C++14 |
TESTS |
26 |
15 |
3788800 |
|
|
130477953 |
Fidelxyz |
H |
Oct. 1, 2021, 3:07 p.m. |
OK |
GNU C++14 |
TESTS |
26 |
15 |
3788800 |
|
|
130473290 |
tongji_rkr |
H |
Oct. 1, 2021, 2:25 p.m. |
OK |
GNU C++14 |
TESTS |
26 |
15 |
3891200 |
|
|
130470544 |
TLE_Automat JuruoAln Create_Random |
H |
Oct. 1, 2021, 2:01 p.m. |
OK |
GNU C++14 |
TESTS |
26 |
15 |
3891200 |
|
|
130492130 |
LovelyAnQi |
H |
Oct. 1, 2021, 5:36 p.m. |
OK |
GNU C++14 |
TESTS |
26 |
15 |
3891200 |
|
|
130487573 |
lid416 Christianlsl Herrywim |
H |
Oct. 1, 2021, 4:49 p.m. |
OK |
GNU C++14 |
TESTS |
26 |
15 |
3891200 |
|
|
130473434 |
papaya.ahaha giangcbg |
H |
Oct. 1, 2021, 2:27 p.m. |
OK |
GNU C++14 |
TESTS |
26 |
15 |
3891200 |
|
|
130480736 |
adibur6 Hamim99 _nmp_ |
H |
Oct. 1, 2021, 3:36 p.m. |
OK |
GNU C++17 |
TESTS |
26 |
15 |
204800 |
|
|
130466277 |
BSBandme sweetsc |
H |
Oct. 1, 2021, 1:24 p.m. |
OK |
GNU C++17 |
TESTS |
26 |
15 |
512000 |
|
|
130481124 |
apoorv_me |
H |
Oct. 1, 2021, 3:40 p.m. |
OK |
GNU C++17 |
TESTS |
26 |
15 |
3788800 |
|
|
130471110 |
henowww |
H |
Oct. 1, 2021, 2:07 p.m. |
OK |
GNU C++17 |
TESTS |
26 |
15 |
3788800 |
|
|
130482732 |
NintsiChkhaidze sabukatsire THE-Champ |
H |
Oct. 1, 2021, 3:56 p.m. |
OK |
GNU C++17 |
TESTS |
26 |
15 |
3788800 |
|
|
130481187 |
B.White |
H |
Oct. 1, 2021, 3:41 p.m. |
OK |
GNU C++17 |
TESTS |
26 |
15 |
3891200 |
|
|
130490818 |
Arnob mukim Parvej |
H |
Oct. 1, 2021, 5:23 p.m. |
OK |
GNU C++17 |
TESTS |
26 |
15 |
3891200 |
|
|
130489783 |
linuxed |
H |
Oct. 1, 2021, 5:12 p.m. |
OK |
GNU C++17 |
TESTS |
26 |
15 |
3891200 |
|
|
130489688 |
kokkino_galazio qmaxrun pushpavel |
H |
Oct. 1, 2021, 5:11 p.m. |
OK |
GNU C++17 |
TESTS |
26 |
15 |
3891200 |
|
|
130481832 |
byambasuren togi mrmendee |
H |
Oct. 1, 2021, 3:47 p.m. |
OK |
GNU C++17 |
TESTS |
26 |
15 |
3891200 |
|
|
130466179 |
veckoper DevourThemAll Eden_CY |
H |
Oct. 1, 2021, 1:24 p.m. |
OK |
GNU C++17 (64) |
TESTS |
26 |
15 |
204800 |
|
|
130466225 |
XueYJ ezlmr sjc061031 |
H |
Oct. 1, 2021, 1:24 p.m. |
OK |
GNU C++17 (64) |
TESTS |
26 |
15 |
307200 |
|
|
130466257 |
Argentina medium_waxberry Misaka-Mikoto- |
H |
Oct. 1, 2021, 1:24 p.m. |
OK |
GNU C++17 (64) |
TESTS |
26 |
15 |
307200 |
|
|
130466294 |
DerekFeng xuziyuan burnoutag |
H |
Oct. 1, 2021, 1:25 p.m. |
OK |
GNU C++17 (64) |
TESTS |
26 |
15 |
512000 |
|
|
130466282 |
Bench0310 |
H |
Oct. 1, 2021, 1:24 p.m. |
OK |
GNU C++17 (64) |
TESTS |
26 |
15 |
716800 |
|
|
130466269 |
HCPS42 Honey_Badger ALILILILILI-KHAN |
H |
Oct. 1, 2021, 1:24 p.m. |
OK |
GNU C++17 (64) |
TESTS |
26 |
15 |
921600 |
|
|
130466147 |
satashun kort0n fuppy |
H |
Oct. 1, 2021, 1:23 p.m. |
OK |
GNU C++17 (64) |
TESTS |
26 |
15 |
4300800 |
|
|
130470412 |
PyPcDeV andrey27sm |
H |
Oct. 1, 2021, 2 p.m. |
OK |
GNU C++17 (64) |
TESTS |
26 |
15 |
4300800 |
|
|
130486020 |
patrick_ubc |
H |
Oct. 1, 2021, 4:32 p.m. |
OK |
GNU C++17 (64) |
TESTS |
26 |
15 |
4403200 |
|
|
130488438 |
Ayalla |
H |
Oct. 1, 2021, 4:59 p.m. |
OK |
GNU C++17 (64) |
TESTS |
26 |
15 |
4403200 |
|
|
130474862 |
Irush izlyforever |
H |
Oct. 1, 2021, 2:39 p.m. |
OK |
Go |
TESTS |
26 |
124 |
10854400 |
|
|
130507897 |
melsak4 |
H |
Oct. 1, 2021, 9:46 p.m. |
OK |
Haskell |
TESTS |
26 |
1357 |
11571200 |
|
|
130470652 |
bobbilyking |
H |
Oct. 1, 2021, 2:02 p.m. |
OK |
Java 11 |
TESTS |
26 |
171 |
25395200 |
|
|
130466427 |
fetetriste |
H |
Oct. 1, 2021, 1:26 p.m. |
OK |
Java 8 |
TESTS |
26 |
108 |
21811200 |
|
|
130468874 |
sajibcuet09 |
H |
Oct. 1, 2021, 1:48 p.m. |
OK |
Java 8 |
TESTS |
26 |
140 |
22323200 |
|
|
130468375 |
learnjava |
H |
Oct. 1, 2021, 1:44 p.m. |
OK |
Java 8 |
TESTS |
26 |
155 |
28979200 |
|
|
130478641 |
procrastinate7 |
H |
Oct. 1, 2021, 3:15 p.m. |
OK |
Kotlin |
TESTS |
26 |
109 |
22016000 |
|
|
130484117 |
mishgan |
H |
Oct. 1, 2021, 4:12 p.m. |
OK |
Mono C# |
TESTS |
26 |
61 |
10342400 |
|
|
130476777 |
r57shell |
H |
Oct. 1, 2021, 2:56 p.m. |
OK |
MS C++ 2017 |
TESTS |
26 |
15 |
3993600 |
|
|
130484461 |
abdelrahman_rashed |
H |
Oct. 1, 2021, 4:16 p.m. |
OK |
MS C++ 2017 |
TESTS |
26 |
46 |
3891200 |
|
|
130468075 |
XORring-Samurai loud_mouth sudoSieg |
H |
Oct. 1, 2021, 1:41 p.m. |
OK |
PyPy 3 |
TESTS |
26 |
109 |
22118400 |
|
|
130476361 |
sarthakmanna crap_the_coder |
H |
Oct. 1, 2021, 2:52 p.m. |
OK |
PyPy 3 |
TESTS |
26 |
109 |
22425600 |
|
|
130478752 |
hxu10 |
H |
Oct. 1, 2021, 3:16 p.m. |
OK |
PyPy 3 |
TESTS |
26 |
124 |
22323200 |
|
|
130467378 |
_swet Keep_Coding PiKa_PiKaa_chuuu |
H |
Oct. 1, 2021, 1:35 p.m. |
OK |
PyPy 3 |
TESTS |
26 |
155 |
22835200 |
|
|
130482243 |
Programmerryoki |
H |
Oct. 1, 2021, 3:51 p.m. |
OK |
PyPy 3 |
TESTS |
26 |
280 |
498790400 |
|
|
130476310 |
wizist |
H |
Oct. 1, 2021, 2:52 p.m. |
OK |
Python 3 |
TESTS |
26 |
61 |
6963200 |
|
|
130467416 |
sansen |
H |
Oct. 1, 2021, 1:35 p.m. |
OK |
Rust |
TESTS |
26 |
31 |
3993600 |
|
|
130476662 |
Spheniscine |
H |
Oct. 1, 2021, 2:55 p.m. |
OK |
Rust |
TESTS |
26 |
31 |
4096000 |
|
|
remove filters
Back to search problems