返回题库

HMMT 十一月 2016 · 冲刺赛 · 第 35 题

HMMT November 2016 — Guts Round — Problem 35

专题
Contest Math / 竞赛数学
难度
L3
来源
HMMT

题目详情

英文原题

  1. [ 20 ] Find the total number of occurrences of the digits 0 , 1 . . . , 9 in the entire guts round. If your
    | X − Y |
    answer is X and the actual value is Y , your score will be max(0 , 20 − ) 2
解析

英文解析

  1. [ 20 ] Find the total number of occurrences of the digits 0 , 1 . . . , 9 in the entire guts round. If your
    | X − Y |
    answer is X and the actual value is Y , your score will be max(0 , 20 − )
    Proposed by: Allen Liu 2
    Answer: 559
    To compute the answer, I extracted the flat text from the PDF file and ran word-count against the listof digit matches.
    evan@Arch mega ~/Downloads/November
    $ pdftotext HMMTNovember 2016Guts test.pdf guts-test-text.txtevan@Arch mega ~/Downloads/November
    $ cat guts-test-text.txt | egrep "[0-9]" --only-matching | wc -l
    559