StevenL
#include <stdio.h>

int main() {
	
	__int64 n, ans;
	while(~scanf("%l64d", &n)) {
		n %= 10000;
		ans = (n*n*(n+1)*(n+1)) / 4;
		printf("%04d\n", ans%10000);
	}
	
	
	return 0;
}

分类:

技术点:

相关文章:

  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
猜你喜欢
  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
  • 2021-09-01
相关资源
相似解决方案