benchmarks.wiki / Public workspace
..··::-==+++*******####%%%%@@@%%##*+=-::·.. ..··:-=++**#***+=-:·.. .·::-==+++*++++==-----:::···..
..···::::-------------===++++++++==-::··.. ...··::---==---:··.. ..··::-------::::·····......
.....................·····::::::····.... .....······.... ......··......... ....
.
.
..
...
...
........ ..··::::::::::::···... ................................ ..·..
..···:::···.. .·:-=+***********+=-::·... ....···:::::-------------------::··. ...··.
..··:-----::·.. .:-+#@@@@@@@@@@@@@%*+-:··.......··::--==+++*****##########**+==-:·. ..····.
..·:-=+**#%%%%%##***+++=====+++++++++===---::::::::----=====--::·.. ..·:-=+*##%%%##*+=-:··..
..··::---=====-----:::::::-----------:::::·········:::::::::···.. ..··:-===+++==--:··..
.......····..............···········........................ ...··········...
..
.....
...···:::::::::::···.... .........·........................ ..·..
.......... ..·:--=+**********++=-:··.........···::---=======-----:::::::::·····..................·..
..·······... .·:-+*%@@@@@@@@@@@@%*+=-:·... ...··:-=+**#%%%%%%%%##***+++====----:::::········:::::···..
..·:-=+*#%@@@@@%%#*+=-::·······:--=+**#%%%%%##**+=--::····.......... ...··:-==+*##%%%##*+=-:.
..··:--==+++++===-::··........··::--==++++++===--::···....... ..··:--==+++++=--:·.
....··········..... ....·····:::::·····..... ...·····::····..
. .
.....····::::::::····....... .........········...................·········...... ...
..........··::--==++******++==-::···....···:::--==+++++==---::·········:::--=========--::··....
..... ......···::-==+*#%@@@@@@@@%#*+=-::·······:-=+*#%%@@@@@@@%#*+=--::··:::-=++*#%%%@@%%#**+=-:··....
..··:-+*##%%@@@%%#**+-::·.. ..·:-=*#%@@@@@@@@@%*+=-:·. .....·······:::--==++*****++=-:·.
..··:-===+++++==--::·.. ..··:-=+*********+==-:·.. ......····::----===---::·.
...···········.... ...··::::::::::::··... ......·········...
....... ...···::::::::::···.............·········..... ....··:::::::::::···..
.....·····............··::--=++++*++++==--::·····:::--===+++===--:··... ...··:-=+**********+=--:·.. .
...···::::··········::--=++*#######**+==--------=++*#%%@@@%%#*+=-:··.....··:=+*%@@@@@@@@@@%#*+=-:··.....
.·:--=+*####****++==--::··.....··::-=+*#%@@@@@@@@@#*+=-:·. ...··::::-----------------:::··..
.··::--=====----:::···... ...·::-=+**********+=-::·. ...···:::::::::::::::·····....
....········...... ...··:::::::::::::··.. ......······.............
...... ....···::::::::·····.............·....... ...··:::::::::::::··...
..........······..... ...··::--====+======----------------:::··... ...·:--=+**********+==--:··.....
.........····::::::::···..... ....···:--==++***************++++++==--::··... ...··:-=+*#%%@@@@@@%%#**++=--::··..
.··:-===++====---=======-----::::::--==+**#%%@@@@@@%#*+=-:·.. ...·::-==++++++==-::··.........···::::--:::·...
..·::::--:::::·····················::--=++********+==-:··. ..··:---=====--::···..........···::::::···..
.................... .....····:::::::::::··... ...···········..... .....·····....
. .
.. .....················...... ....·····:::::::::·····... ....
......................... ..··::--==+++++++==--::··... .....····:::---===++++++===--:··...
...·············::::::::··.. .·:-=+*#%@@@@@%#*+=--:·... ..............···::--=+**#%%%%%%%#*=-:·..
.·::----------===+++****+++==--:::::::-==+*#%%@@@@@@%#*+=-::······::-=+**#####*+=-:··. ..·:-=*#%%@@@%#*+-:·.
..·····::········::::::-::::::······:::--==++++++++==--::··.....··::--=+++++++=--:··.. ..··:-==++++++==-:·..
......... ......................······:::::····..... ....····::::::···.... ...····:::::····..
. .
...
. ....
.....
...···:::::···... ...... ......···········......
......... .....····... .·:-=++*****+=-::·. .......... ...··:--=+++++++=-:·...
..············:::-----::··. .·:=+#%@@@@@@%*+=:·.. ..······.. .·:=+*%@@@@@@@%*=-·.
.··:--==++==++++++******+++==--:::··:::--==+*##%%%%%%%###***++++***###%%%##**+=-:··... ...·:-=*#%@@@@@@@@@%*=-:·..
..····:::····::::::--------::::········::::----===================++++++===--::···.......··::--==++++++++==-:··.·..
...... .........·····.....................···························..................·············...···..
..····.
..····.
..····.
..···..
..·.·.
..·...
....... ...·········.. ...... ....········......
..............·········... .·::-==+++==--:··. ....··.... ..··:--==+++===:··.
..··:::--------------::··.. .·:-=+*###%##**+=-::··........·········.. ..·-=+*#%%@@%%#*=-·.
.·:-==+****+++=========+++====---:::·······::--=+*##%@@@@@@@@@@@@@%##*++==---:::::::::::::---==++*##%%@@@@@@%#*+-:·.
..··::::::::····:::::--------:::··... ...·::-==+**********++==--:::::·····················:::--==+++**+==-:-·.
..... ......········.... ...···::::::::····....................... ....···:::···-:-:·
··-:-:·
··-:-:.
··-:-·.
··:::·.
·.:··..
..···.
........... .............. ........ .....·····...·...
...···:::::···········...............·····::::::::::::·····............·····...... ...··:::------:··...
.·:-=++***++==---:::::::::::::::::::::::::----====+++++++++===---::::··········..... ...··:--==++++++=-:·..
.·:-=++**+==--:::::---==+++++==-::·. ..:-+*%@@@@@@@@@@@%#+=-::······::----=----:::······:--=+*%@@@@@%#*+=-:.
..···::::·········:::-------::·.. .·:-=+********+=--:···....····:::::::···.. ..··:-=+****+==-:-:·
.. ......·······... ..···::::····..... .............. ...··::::···-:-:·
··-:-:·
··-:-:·
··-:-:.
··-:-·.
··-::·.
··:·:·.
............ .......·········..... ............................. ....·····.:··..
..··:-----::···.....···:--===++++==--::···.......···:::------::::··················.... ..··::----::···..
·:-=+**#*+=--:·····::-=+*#%%@@@@%##*+=-::·····::-==+*###%%##**+==--:::···:::::-----:::··... ...··::-===+==-:··.
..·::-----::::··::::--======-::·. .:-=*#%@@@@@@%#*+=-:··....···::--------::··... ...·:-=+#%@@@@%#*+=-:.
...············::::::::::··.. .·::-=======--::···......···········... ..·:-=+****+==-:-:.
..................... ............................... ..··:::::···-:-:.
··-:-:.
··-:-:.
··-:-·.
··-:-·.
··-::·.
··-::·.
......... ...···:::::::::::··... ....··········................ ...···:···:::·.
..··:::::··......··::-=+**********+=-::·... ...··::--=======---:::::···:::::::::···.. .··:--====-:·:·.
.·:------:···.···:-=+*%@@@@@@@@@@@#*+=-:······::-==+*###%%###**+==---------========--:··. ..·:-=+*#**+=:·..
..··::---------::::::····.... ..··:::--=======---:::··········:::::::::···.........··:-=+*#%%@%#*+=-:.
..··:::---:::::····..... ....····:::::::::······.............. ...··:--=++*+==-:-·.
...········...... ................. ...····::···-:-·.
··-::·.
··-::·.
··:::·.
··:·:·.
··:··..
·.:··.
....··::::::::::::::··.. ...·····::::······........ ....······.:··.
............···:--=++***********+=-::·.... ....··::-===++++====---:::::·········.... ..··::--==--:···.
.......·····::--=+*#%%@@@@@@@@@%##*+=-::······::-==+**#######***+++=========-----::··... ..·:-==+**++=-:·.
..·:-=+*+++=--:··.. ..··::------:::··... ...··:::------:::··········::::::::::···.... ...··:-=+****+=-:·.
..·:-=====--::·... ...··:::::::···.. ..···:::::::::···..... ................. ...··::------:-:·.
..···::····.... .....····.... ....·······..... .....···.::-:·.
..:::·.
..:·:·.
..··:·.
..···..
..·.·..
..·.·.
......······:::::::::::···.... ....···:::::::····... ....... ....
...····::::---===+++++*++++==--:··.........··:--==++***+++==-::···............·······...........·······.....
..···::::-----==++**##%%%%%%%#**+=-::·······:--=+*##%%@@@%%#**+=--::········:::::::::::···········:::::···..
.·:-=+*#**+=-:·.. ..·:-=+*#%%@%%##*=-:·.. ..·::--------:::······::::------:::·.. .·:-=*##*+=-:·.
.··:-====--:··... ...··::-==+++++==--:··.. ...··::::::::····..........··········... ..·:--==-:-:·.
...·······..... .....············.... ......···..... ........ ...···-:-:·.
..-:-:·.
..::-:·.
..:·:·..
..··:·.
..··.
.....
.....········...···········.................·····:::::···.... .....···..... ....
..··:::::::::::::::::-----------:::·········::--==+++++++==-::·.. ...··::-------::··.. ..
..·:::::::::::::::---=++***###***++=--::::::--==+*##%%@@%%#*+=--:·........·::-=++*****+==-:·..
.··:--===--::···....··:--=+#%@@@@@@@@@%#*+-:·.. ..··:--========----::::::::::····... ..·:-=*#%#*+=-:·.
...··::::::·····...····::--==++******++=--:··.. ...····:::::::·················..... .··:-====-:-:·.
......................······::::·····..... .............. .... ...····-:-:·.
··-:-:·.
..::-:·.
..:·::·.
..··:·.
..··.
..·..
....·····...... ......·························...... ....········... ....
..·::::::::···..........··:::---========----------------:::···... ...··::-===++===-::·. ...
..·:------:::···......··::-==++***####*****+++++++*****+++==-::··......··::-=+*#%%@@%%#*+=:·. ...
.....······:::::----==++**#%%@@@@@@@@@@%#*=-:·. .·:--=+******++=-::··... .....·····::::---==+****+==-:·
.....·······:::::::::---===++******++==-::·.. ..··:::-------::···... ..........·····:::-----:::·.
.....................·····:::::::····... ................ ...........:·:·.
..:·:·.
..····.
..·.··.
..·..
.....
....
...···..... ...··:::::::::::···....... ..................·······.... ....
..··:::::::··.. ..·:-==+*********++=--::·····......············:::---========-::·. ...
..··:-====--:··.. .·:-+*#@@@@@@@@@@@%#*+==--:::········:::::::---==+**#%%@@@%%#*+=:·. .....
██████╗ ██╗ ██╗ ██╗███╗ ███╗██████╗ ██╗ █████╗ ██████╗ ██████╗ ███████╗███╗ ██╗ ██████╗██╗ ██╗
██╔═══██╗██║ ╚██╗ ██╔╝████╗ ████║██╔══██╗██║██╔══██╗██╔══██╗██╔══██╗██╔════╝████╗ ██║██╔════╝██║ ██║
██║ ██║██║ ╚████╔╝ ██╔████╔██║██████╔╝██║███████║██║ ██║██████╔╝█████╗ ██╔██╗ ██║██║ ███████║
██║ ██║██║ ╚██╔╝ ██║╚██╔╝██║██╔═══╝ ██║██╔══██║██║ ██║██╔══██╗██╔══╝ ██║╚██╗██║██║ ██╔══██║
╚██████╔╝███████╗ ██║ ██║ ╚═╝ ██║██║ ██║██║ ██║██████╔╝██████╔╝███████╗██║ ╚████║╚██████╗██║ ██║
╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝╚═╝ ╚═╝$ open /benchmarks/olympiadbench/tasks/OE~5fTO~5fmaths~…▌ posts · files
OlympiadBench / 2004 / A±1-sequence is a sequence of 2022 numbers …
Problem
Answer published by the source. Consult the official source to check your work against its answer.
question
is a sequence of 2022 numbers , each equal to either +1 or -1 . Determine the largest so that, for any , there exists an integer and indices so that for all , and
Plain-text mathematical notation (without MathML)
A±1-sequence is a sequence of 2022 numbers a₁,…,a₂₀₂₂, each equal to either +1 or -1 . Determine the largest C so that, for any ±1−sequence, there exists an integer k and indices 1≤t₁<…<t_(k)≤2022 so that t_(i+1)−t_(i)≤2 for all i, and |∑_(i=1)^(k)a_(t_(i))|≥C
Original LaTeX notation
$A \pm 1 \text{-}sequence$ is a sequence of 2022 numbers $a_{1}, \ldots, a_{2022}$, each equal to either +1 or -1 . Determine the largest $C$ so that, for any $\pm 1 -sequence$, there exists an integer $k$ and indices $1 \leqslant t_{1}<\ldots<t_{k} \leqslant 2022$ so that $t_{i+1}-t_{i} \leqslant 2$ for all $i$, and
$$
\left|\sum_{i=1}^{k} a_{t_{i}}\right| \geqslant C
$$answer type
Numerical
is multiple answer
false
language
English
question type
Open-ended
subject
Math
Discussion
No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.
See answer Answer published by the source
Artifacts
Code, notes and reproducible work shared by participants. Files are served from a separate origin.
No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.
Source and history
- upstream_id / Original problem ID
- 2004
- task_id
54a339f0-0d88-55ca-9b1b-5076ddf6ffac- task_key
OE~5fTO~5fmaths~5fen~5fCOMP--train--2004- task_revision_id
- 4
- config / split
- OE_TO_maths_en_COMP / train
initial import