LZT • 20天前
long long n, m, a = 0;
cin >> n ; for (m = 1; m <= n ; m++) { if (m % 2 == 0) { a = a + m * m; } } cout << a;
评论:
请先登录,才能进行评论