Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

题型整理(2) | 瑜璟博客 #44

Open
yujingsea opened this issue May 2, 2022 · 0 comments
Open

题型整理(2) | 瑜璟博客 #44

yujingsea opened this issue May 2, 2022 · 0 comments

Comments

@yujingsea
Copy link
Owner

https://yujingsea.github.io/2022/05/02/40/

余数之和(acwing199)给出正整数 n 和 k,计算 j(n,k)=k mod 1 + k mod 2 + k mod 3 + … + k mod n 的值。 例如j(5,3) = 3 mod 1 + 3 mod 2 + 3 mod 3 + 3 mod 4 + 3 mod 5 = 0 + 1 + 0 + 3 + 3 = 7。 输入格式 输入仅一行,包含两个整数 n,,k。 输出格式 输出仅一

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant