Блог пользователя FHVirus

Автор FHVirus, история, 3 года назад, По-английски

Hello Codeforces! Today I feel like thirsty for contribution, so I'll share some trick to get (almost) unlimited amount of (almost) square grid paper during contest, and hope that I will get some contribution.

If you use Vim, open an empty file and type the following from normal mode:

i+<esc>25A---+<esc>
o|<esc>25A   |<esc>
ggVGyG35pGdd

Then you will get this: Da Grid

The Vim commands are basically just doing the copy-and-paste part for you. If you don't use Vim, you can manually produce the pattern instead.

The grid is 101 characters wide * 71 characters high, or 25 cells wide * 35 cells high. 101 * 71 characters roughly matches domjudge's upper limit for printing, but please test it in testing session. This trick has been tested in 2023 Taoyuan regional, and the staff have approved this trick.

Since the grid cells are (almost) square, you can use them in DP and Geometry problems. Happy printing!

P.S. Please don't print more than you need. Some people got warning from juries for printing 10+ pages of grid paper during testing session.

  • Проголосовать: нравится
  • +341
  • Проголосовать: не нравится

»
3 года назад, скрыть # |
 
Проголосовать: нравится +31 Проголосовать: не нравится

Some vim golf, your last line can be replaced with this, saving some keystrokes :0

ggyj35PGdd
»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I'm confused, why don't you just use scrap paper

»
3 года назад, скрыть # |
 
Проголосовать: нравится +51 Проголосовать: не нравится

God-tier blog

»
3 года назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

I'm confused, why don't you bring grid paper with you beforehand

»
3 года назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

I think I'm the only person who use Excel for visualizing dp :)