做测试 登录 English
← 练习 369 →
搜索
跳转
找到 {{searchResults.length}} 条与“{{searchWords}}”相关的结果 没有找到与“{{searchWords}}”相关的结果 × 返回目录
AIME 目录 · 按章节
基础计数 (90)
---- (44)
概率 (91)

练习及解答

练习 369
An integer between $1000$ and $9999,$ inclusive, is called lopsided if the sum of its two leftmost digits is exactly $2$ more than the sum of its two rightmost digits. How many lopsided integers are there?
← 返回第 369 题
解答
  1. Let $L(t)$ count pairs $(a,b)$ with $1\le a\le9$, $0\le b\le9$, $a+b=t$, and $R(s)$ count digit pairs with sum $s$.
  2. The answer is $\sum_sL(s+2)R(s)$, so $s=0,\dots,7$ give $\sum(s+2)(s+1)=240$; $s=8,9$ give $9\cdot9+8\cdot10=161$; $s=10,\dots,16$ give $\sum(17-s)(19-s)=196$.
  3. Total $240+161+196=597$.
  4. The answer is $\boxed{597}$.
搜索 跳转 上一题      下一题

联系我们

谢谢!您的消息已发送。
按年份
1985 (1 题)
1984 (1 题)