{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"我试图解决问题[1234 - 谐波数](http://v2.lightoj.com/author/problem/1234),我写了以下代码\n\n``` \nlong long H( int n ) {\n long long res \u003d 0;\n for( int i \u003d 1; i \u003c\u003d n; i++ )\n res \u003d res + n / i;\n return res;\n}\n```\n\n是的,我的错误在于我只使用了整数除法。然而,给定**n**,你需要找到代码中的**H(n)**。"}},{"title":"输入","value":{"format":"MD","content":"输入以一个整数**T (\u0026#8804; 1000)**开始,表示测试用例的数量。\n\n每个测试用例以包含一个整数**n (1 \u0026#8804; n \u0026lt; 2\u003csup\u003e31\u003c/sup\u003e)**的行开始。"}},{"title":"输出","value":{"format":"MD","content":"对于每个测试用例,打印案例编号和代码计算出的**H(n)**。"}},{"title":"样例","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e11\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n2147483647\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase 1: 1\nCase 2: 3\nCase 3: 5\nCase 4: 8\nCase 5: 10\nCase 6: 14\nCase 7: 16\nCase 8: 20\nCase 9: 23\nCase 10: 27\nCase 11: 46475828386\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}