Jellyfish and Inscryption
1874G3500· legendary gm2s1024 MB⌨ stdin/stdout
Examples
Sample 1of 6
Input
6 801 2 101 6 62 83 1001 21 32 42 53 43 54 65 6
Output
100000000000
Sample 2of 6
Input
4 304 10000004 100000001 22 33 4
Output
2000000
Sample 3of 6
Input
16 1501 1 101 10 12 43 41 20 202 303 201 1 1002 91 1 2002 93 101 190 1002 1001 22 33 44 55 66 77 88 99 1010 1111 1212 1313 1414 1515 16
Output
20000000005600
Sample 4of 6
Input
9 901 1 2003 2003 2003 2003 2001 200 2003 20001 22 33 44 55 66 77 88 91 9
Output
80000000001000
Sample 5of 6
Input
9 801 20 2003 2003 2002 51 100 2003 2003 20001 22 33 44 55 66 77 88 9
Output
60000000015000
Sample 6of 6
Input
16 340002 63 14 274 403 902 61 8 102 21 10 72 902 43 102 112 713 153 152 36 144 1210 129 107 84 1311 124 611 1614 152 55 159 138 141 32 1512 167 104 51 24 114 94 163 66 87 1115 16
Output
133000000040
58%
1874G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)