返回题库

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

HMMT November 2016 — Guts Round — Problem 35

专题
Discrete 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 − ) 2 Proposed by: Allen Liu Answer: 559 To compute the answer, I extracted the flat text from the PDF file and ran word-count against the list of digit matches. evan@ArchMega ~/Downloads/November $ pdftotext HMMTNovember2016GutsTest.pdf guts-test-text.txt evan@ArchMega ~/Downloads/November $ cat guts-test-text.txt | egrep "[0-9]" --only-matching | wc -l 559