benchmarks.wiki / Public workspace
.·:=+#%%%#*+=-:··....····::::::····::--=++**#**+=-:·.. ..·:-=++****++======++*#####**+=-:···.··::-=+***+=-:·.
.·:-=+*++=--:·.. ...············::---===--::·.. ..··:--=====---::::::-***##**+=-::·....··:-=++**+=-:·.
..···::··... ..............·······... ...·········......::++***++==-:··....··:-==++*+=:·..
..::==++++==-:··......·:--=+++=-:·..
..··--====--::·.......·:--=++++-:·..
.·::-----::··......··:-==+**+=-··.
..··:::::::··......·::-=+***+=-:·.
..··:::::········::-=+**##*=-:·.
...··::::::::::::--=+**###*=-:·..
..··:::::::::···············..... ......···.... ..·::-----------==++*####*=-:·.
..·:=+*********++=---::---------::··......··::::::::·.. .·::-==++++=====+++******+=:·..
...·:-+*%@@@@@@@@@@@%*++=====++++++==-::···.···::--==--::·. ..:-=+**###***++++++++++++=-:·.
.·:-==++=-:··......··::---==-----==++*#%%@@@%#*+=:·. ...······.....··:-=++**##*++=-:::·::--=+##%@@@%#+-:·.
..·::---::·.. ...··::::::::::::--===+++==-:·.. ...····.......··::--*###**+=--:::::-=+*#%%@@%%*=-·..
...···... ...............·········... ......... ......--#####*+=--:::::-=+**#%%%##+-:..
..-=####**+=--:::::--=+*####*+=:·.
..--*###*++=-:::::::-=++****+=-·.
..--*****+=--::···::--=++**++=:·.
..:-+++++==-::·····::-==++++==:·.
..::======--::·····::-==++++==:·..
.··--===---:::··:::--==++++==-:·..
..···::::·····......·····..... ...········.... .·:---==----:::::--==+++++==-:·..
.·:-=+*****++==-------------::···......··:--=====--:··.. ...:--=======------===+++++==::·..
.·:=+#%@@@@@@@@%#**++++++++++++=-::······:-==+****++=-:·. ..·:-=++***+++=============--:·..
..·····.. .··:--=======+++*#%@@@@@@@@@@@#*=-:·............ .·:-==+++==-::·····:-=+*#%@@@@@%#+=:·..
...·.... ..··:::---------==+*********+=-:·.. ..·::--+++==-::::::-=+*#%@@@@@@%*=-·.
.. ....·············:::::::::··.. ....--***++=--::--==+#%@@@@@@#*+-·.
.·==##**++=-----=+*#%%@@@%#*=-·.
··==%##**+===--==++*##%##*+=:·.
··=+%%##*++==---==++****+=-:·.
··=+%%##*+==------===++==-:·..
··==###*++=--:::::----=---:··.
··==#***+==-::::::::-----:::··..
..··········.............. ...·······...........--**+++=--:::··::::-----:::··......
.·:--=+++++==--:::::::::::··.. ..·:--=====--::·······:::-+++++==--:::::::::-----:::··.....
.·:=+#%%@@@%##*+===---===---::·.. .·:-+*##%%##*+=-::····::-=+++**++==--:::::::::---::::··.....
.. ..··::::::::--=+*%@@@@@@@@@@@@@#*+=------:::··.. ..·:-=++++=--:··...··:-=*#%%@@@%##+=-:·..
..···::::::::--==+************=--:···......... ..·::----==-::····:-=+*#%@@@@@%#*=-·.
..........····:::::::::::::··... ....·--+==--::::-=+*#%@@@@@%#+=:·
··=-*++==---==+*#%%@@@@%*+-·.
··==#**++====++*##%%%#*+=:·
··++%##*+++===+++***++=-:.
::++%%#**+==========--:·. ...
::++%%#*+==--::::::::··.. ..··..
::++%#*+=--:···········.........·····..
...···:::::::············.... ....····......·······==#*+=-::··......··········::::::··.
...... ..·::-=+*****+++==-------:::··. .·::-======---::::----====*++=-:··.......···:::::----:::···.
............·:-+*#@@@@@@@%##*++====---::·. ·:=+*#%%%%#**+==---==+++****+==-:··.......··::--------:::··..
...·····.......·:-=*#@@@@@@@@@%#*++======---::··. ..·:=+*#####*+=-:··..··:-=+*#####**+=-:·..
.............··:-=+*********+=--:::········... ..·::-====--:-::·····:-=+*#%@@%#*+=:·.
... ....··:::::::::::···....... ...······-:--::·::--=*#%%@@%%*+-:.
··--=------=++*#%%%%#*=-·.
··=-++======+**###**=-:. ....
··==**++=====++++==-:·. .····.
::++#*++==------::··.. .·:--:·.
::++#*+=-::····..... .·:--==-:·.
::+=*+=::·.. ......··:--==+==-:·.
..···::::::::::::::::::::··.. .....·············:::··=-+-:·.. ..··::--==+++++==-:·
....·:-==+**********+++++++==--:·. .·:-========-----=======--:-:·. .··:-==+++****+=--:·.
.......··:-=*#%@@@@@@@@@@@%###***+==-:. .:=+#%@@@@@%#**+++++++***++=--:·. .·:-=++*******+=-::·..
..··:--===--::··....··:-=+*#%%%##*+==-::::::::::··.. .·:-+#%@@@@@@%*+=:··...··:-==+++++=--:·.... .....
...········.... ...·:--=+++++==-::····....·...... ..·:-=++***+==-:···...··:-=+**##*+=-:·. ....
...... ...···:::::···.... ...····::····.·······::-=+*###*+=-·. ..··.
..:·::·::--=+**#**+=:·. .·:::·.
·.::------==++++==-·. .·:---:·.
··-:=-----------:·.. ·:-=+=-:·.
··--=--:::·····... .·:=+**+=-:·.
··-:-::·... ..·:-=+#%#*+=-:·.
··:·:·. ..··::-=+*#%@%#*+=-:·
...············:::::::::··.. ....·····················.·.. ..·:-=+**##%%@@%#*+=:·.
..·:--=++*****++++++****++=-:·. .·:-=++++++====---=====--::·.. .·:-+*#%%@@@@%%%#*=-:·.
..·:=+*%@@@@@@@@@@@@%%%%##*+=-:. .·-+#@@@@@@@%%#*+++=+++++==-:·.. .·-=*#%@@@@@@%##*+--:·..
..·:=*##%%%##*+==-----=+**#%%%%#**+=-:···........ .·:=*%@@@@@@@@@#+-:·.. ..··:--===--:··......··::::··.
..·:-=======--::·····::--======--::·.... ..·:-=+*******+=:·.. .·:-==+++==-:·.. ..·:::::·..
..········..... .....········.... ....··:::::::··.. ..·:-=++*++=-:·. .·:--=--:·.
. ..··:-=++++==-·. ·:-=++=-:·.
. ..··::--====--:·. .·-+*#*+=-:·.
..··::::::::::··.. .·:=*%%#*+=-:·.
..·····........... ...·:-+#@@%#*+=-:·.
...... ....··:--=+#%@@@%#*+=-:.
. . ..·:-==+*#%%@@@@@%#*+=:·.
..............·····::::···.. ..······················... .·:-+*#%@@@@@@@@@@%#+-:·.
.··::---====---====+++++==-:·. .·:-=++***++==----------:::··. .:-+*%@@@@@@@@@@%##+=-:·.
..·-=+*##%%%%%%%########**+=-·. .:=*%@@@@@@@@%*+==---------:··. ·:=*%@@@@@@@@@%#*+==-:·..
.·:=*#%@@@%%#**+++**##%@@@@@@%#*+=-:··...... .·-+#@@@@@@@@@@%+-·. .··:------::·····:--=+*++=-:·.
..·-=++**+++==-------==+++++==-::·.. ..·:-=+********+=:·. .·:-==++==-:··...··:-=+**++=-·.
..··::::::····......·········... ....···::::::::··.. .·-=+++++=-:··.....·:-+*##*+=-:.
.·:-==++++=-:·.. .·:-=*%%#*+=-:.
.·::--====-::·... ..·:-+*%@%#*+=-:.
..··::::::::··.....··:=+#@@@%#*+=-·.
.....············::-=+*%@@@@%#*+=:·.
..···::--==+*#%@@@@@@%#*+-·.
..·:-=+**##%%@@@@@@@@%#+-:.
....................······... ...···::·····................ .:-=*#%@@@@@@@@@@@@%%*=-:.
..··:::::::::::::::---===--:·.. ..:-=++****+==-:::·····::::···.. .·:=*#@@@@@@@@@@@%##*++-:·.
..·:-==+++++++++++++++++++=-:·. .·-+#@@@@@@@@%*+=-::···::::::··.. .·-=*%@@@@@@@@@@%#*+=--:·..
.·-=+*##***+++++**#%%@@@@@%#*+=-::··..... .·:=*%@@@@@@@@@@#=:. .·:--=====-------=+*#%%@%#+=:·.
.·:-=+++===------===++++++==-:··.. ...·:-=+*********+-:. .·-=++**++=--::::--=+*#%%%*+=:·.
..··::::··················... ....···:::::::::··.. ·:-=+****+==-::··::-=+*#%@%#+=:·.
.:-++****+==-:·····:-=+#%@@%#+=:·.
.·-=++++++=--:·····:-=+*%@@@%#+=:·.
··--=====---::···::-=+*%@@@@%#+=:·.
..::::------::::--=+*#%@@@@@%#+-·.
...···::---=====++**#%@@@@@@%*=:·.
..·:-==++***####%%@@@@@@%*=-·.
.......... ........... ..···::::···.... .......... .·:-=+*#%%@@@@%%%%%%%%##*=-·.
...··::::····.....··:::---:::·.. .··:-=+****+=--:··.....···::::··.. .·:-+*%@@@@@@@@@%%###**++=-·.
..··::-==-----:::---=======-:··. .·-=*#@@@@@@@#*+-:··...···::--::··.. .·:=*#@@@@@@@@@@%##*+==--::·.
.·:-=+++===---==++*######**+=--:···........ ..·:-=*%@@@@@@@@@%+-· .·:-=++++++=====++*#%%@@@@%#+-:..
.··:--=---::::::---=======-::·.. ....··:--=+********+-:·. .-=+*####*++======+*##%%%%#*=:·.
...······.......·········... ....·····:::::::···.. ·:+*#%%%%#*+==----==+*###%##+-:·.
.:-*#%%%%#*+=--::::-==+*####*+-:.
..--##%%##*+=-::::::-==+*####*=-·.
..--*****++=--::::::-=+**####*=-·.
..::=++++==---:::::-==+*#####*=-·.
..··--======-------==+*######*=:·.
..:--============++**#####*+=:·.
........ .......... ...···:::···... ....··..... ..:--=++******+++****####*++-·.
...·····.... ....··::::-:::···......··:--=++++==-:··.. ...··::---::··.. ..:-=**#%%%%###**********+==:·.
..···:::::·····::--=======-::···.···:-=+*#%%%%#*+=-:·.....··:--=====-:·.. ..·:-+*#%@@@@@%%##**++++++==-:·.
.··:--===-::::::--==++++++==--:::···········..···::-+*#@@@@@@@@%*=:. .·:=+******++===++*##%@@@@@%#*=:·.
..··::::········::---==---::·... ....···::--==++*****+=-:·. ..·:-#%%%%##*++===++*##%%%%%#*=-·.
................·······... ....······:::·····... ..·=+@@@@%%#*+=====++**#####*+-:.
··++@@@@%#*+==----==++****++=:·.
··++@@@%#*+=--::::--=+++*++=-:.
··++%%%#*+=-:::·:::-==++++==-:.
··==##*++=-::····::--==+++=-:·.
..--+++==--::····::--==+++=-:·.
..::=====--:::··:::-==++++=-:·.
............. .....········.. ...·······.... .·:=====---::::::--==++++=--:.
....... ...··::-----:::········::---==--::·.. ..·::-=====--:··........··-=======-------==+++++=--:..
....········:::-===+++++==-:::::::--==+****+==-:·......·:-=+**##**+=-:·......··:-=+++++++===---===+++++=-::..
.·::::::··...···:--==+++===---:::::::::::···::::-=+*#%@@@@@%#+=:· .:-=+*****++==--===+*#%%@@@@%#*+=-··..
...···.........··:-------::··...........···::::---===+++===-:·.. .··:-==+%##**+=====++*#%%@@@%#*+=-:·.
....······... ....··············.... ..···++@%%#*+======+**#%%%%#*+=-:·.
::**@@%#*+==---==+**####*+=-:·.
::**@%#*+==-----==+*****+=-:·.
::*+@%#*+=-:::::-==+++++=-:·.
::++##*+=-::···::--==++==-:·.
··==*++=-::·····::--====-:·.
··--+==-::··..···:---==--:·.
......·...............······... ..···::·····...........::==-::··....··::------:·.
.........···::-------:::·······:::---:::··. .·:-==++*+++=--:········::::---::··....··::------:·.
...···:::::--==+++++++==--::::::::--=====--:··......·:-+*#%@@@@%#*+=-:······::------::····.···::------:·..
..··... ..·::-=++***+++==---::::::::::·::::--=++*##%##**=-:·. .·:-=+****+==-::···::-=++*####**+==---:::··..
.. ..·::-======--:··.........····::::::-----===---:··. ..·:--====-+=--:::::-==+*######*++=--::····..
...···:····... ....··········......... ...·····=-++=-::::--=+*##%%%##*+==--:···...
··==*+=--:::--=+*##%%%##*+=-::··.....
:·==*+=---:--==+*##%%%#*+=--:·.....
:·+=*+=--:::--=+**#####*+=-:·..
:·==*+=--:::--=++*###**+=-:·..
··==+==-:::::--=++****+=-:·..
··=-+=-::···::-==+++++==-·..
.......................·····... ..············...········--=-::·····::-==+++==-:·.
......····::::-----:::········::::::::··.. .·:-==++**++==---::::--------:--:·······:--=====-:·.
..···:::-----==++++++==--:::··:::-------::·.. ..·:=+#%@@@@@@%#*++=----====++==--::··...···:--===--:·.
..·-=+*##%%##*++=--:::::···········::-==+*####**+=-:··....··:-=+**#**+=-::·......··::----:::·····:::--:::·.
.·:-=++**++==-:··... .....·······:::::---===---::·... ...··:-------:····......·::--===---::::::-----::·.
..··::::::··.. ...............···...... ....·····..···......··:-===++===-----------::·.
..····....··:-==++**+++==---------::·.
..····...··::-=+******++==-------::··.
..:·:······:-=+**####**+==------:::·..
·.:·:·····:--=+*#%%%##*+==----::::··..
·.:·::···::-=+*##%%%##*+=--::::····..
·.:::::·:::-=+*#%%%%##*+=-::·····....
............. .....········... .....··...........········.::-:::::--=+*##%%##*+=-:··........
.......·····:::::::········:::------::·.. ..·::--====---::::::---====---::-:::::--=+*#####*+=-:··..
..·····::::---=====---:::::::--======--:·. .·:-+*##%%%##*++=====++******++=-:::·:::-=+**###**+=:·..
.:-+*#%@@@%%#*+=-::···········...···::-=+**####*+==-::···::-=+*#%%%%#*+=-:···...········.. .··:::::·..
.·:-=+*****+=-:·.. ......·······::---=====--::···...··::--======-::·.........······... ..·:---::·..
..·::::::::·.. .............·········..... ....·······... . ...·······.......··:-----::·.
..···:::···....··:-====--:·.
.··::::::::····::-==++==-:·.
..·::-------::::--==++++=-:·.
.·::-===+===-----==+++++=-:·.
.··:-=++***++=======++++==-:·.
..·:-=+*####**++=====+++==-:·..
...···:::::···... ........ ........... . ....·:-=+*#%%%%#**++========-::·.
.......············::-==+++++=-::·.. ..···:::····.....···:::::::···.....··:-=+*#%@@@%%#*+==-------::·..
.......···:::------::---==+**####**+-:·.. .·::-=====--:::·:::--===++==--:······::=+*#%@@@@%%#*+=-::::::···...
.·-+#%@@@@%#*+=-:···...·········..···::-=++**#**++=-:·····:-=+*#%@@@@%%#*+==----======--:··. .··:---::·..
..·:=+*****+=-:·.. ..........···:::--=====--::··...···:--=++++++==-::···:::------:··.. .·::----:·..
..··::::::·.. ............··········..... .....····::····......···::::::··.. ..·:-==--:·..
.....········.. .··:-===-::·.
...······... ..·:-=++==-:·.
..······.......··:-=+**+=-:·..
..·············::-=+*#**+=:·..
..··:::::::::::--=+**##*+=:·..
.·::--===------==+**###*+=:·.
..··:::::::::···................. ....... .·:--=++++++====+++**##*+=-:·.
.....·::-=+********+=-::··...····::::···.... ....·······... .·:-=+**###***+++++++***+=-:·..
...······:::--=+*%@@@@@@@@@#*=-:·······::-----::··......··:::--::··.. .·:-=+*#%%%%%##*+++===+++=-::·.
██████╗ ███╗ ███╗███╗ ██╗██╗ ███╗ ███╗ █████╗ ████████╗██╗ ██╗
██╔═══██╗████╗ ████║████╗ ██║██║ ████╗ ████║██╔══██╗╚══██╔══╝██║ ██║
██║ ██║██╔████╔██║██╔██╗ ██║██║█████╗██╔████╔██║███████║ ██║ ███████║
██║ ██║██║╚██╔╝██║██║╚██╗██║██║╚════╝██║╚██╔╝██║██╔══██║ ██║ ██╔══██║
╚██████╔╝██║ ╚═╝ ██║██║ ╚████║██║ ██║ ╚═╝ ██║██║ ██║ ██║ ██║ ██║
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝$ open /benchmarks/omni-math/tasks/test--023666b5-2b19-…▌ posts · files
Omni-MATH / Let n>1 be a positive integer. Each unit square in an n×n grid of squares is colored either black or white, such that the following conditions hold: - Any two black squares can be …
Problem
Answer published by the source. Consult the official source to check your work against its answer.
problem
Let be a positive integer. Each unit square in an grid of squares is colored either black or white, such that the following conditions hold: - Any two black squares can be connected by a sequence of black squares where every two consecutive squares in the sequence share an edge; - Any two white squares can be connected by a sequence of white squares where every two consecutive squares in the sequence share an edge; - Any subgrid contains at least one square of each color. Determine, with proof, the maximum possible difference between the number of black squares and white squares in this grid (in terms of ).
Plain-text mathematical notation (without MathML)
Let n>1 be a positive integer. Each unit square in an n×n grid of squares is colored either black or white, such that the following conditions hold: - Any two black squares can be connected by a sequence of black squares where every two consecutive squares in the sequence share an edge; - Any two white squares can be connected by a sequence of white squares where every two consecutive squares in the sequence share an edge; - Any 2×2 subgrid contains at least one square of each color. Determine, with proof, the maximum possible difference between the number of black squares and white squares in this grid (in terms of n).
Original LaTeX notation
Let $n>1$ be a positive integer. Each unit square in an $n \times n$ grid of squares is colored either black or white, such that the following conditions hold: - Any two black squares can be connected by a sequence of black squares where every two consecutive squares in the sequence share an edge; - Any two white squares can be connected by a sequence of white squares where every two consecutive squares in the sequence share an edge; - Any $2 \times 2$ subgrid contains at least one square of each color. Determine, with proof, the maximum possible difference between the number of black squares and white squares in this grid (in terms of $n$).
Discussion
No discussion posts on this page yet. Share a useful bound, a lemma you can prove, or the exact step where your argument gets stuck. 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. Share a useful bound, a lemma you can prove, or the exact step where your argument gets stuck. Use the posting template.
Source and history
- task_id
023666b5-2b19-54df-bda8-8f880b114cfc- task_key
test--023666b5-2b19-54df-bda8-8f880b114cfc- task_revision_id
- 1
- config / split
- / test
initial import