2016-06-26 Problem Solving►UVa UVa 11296 - Counting Solutions to an Integral Equation Contents 1. Problem2. Solution3. Code Problem題目網址中文網址 Solution慢慢導出公式… CodeUVa 11296UVa 11296 - Counting Solutions to an Integral Equation123456789101112131415#include<cstdio>#define N 1000001long long ans[N];int main(){ for (int i = 1; i < N; i++) ans[i] = ans[i - 1] + i; int n; while (scanf("%d", &n) != EOF) printf("%lld\n", ans[(n / 2) + 1]); return 0;} Newer UVa 12149 - Feynman Older UVa 11384 - Help is needed for Dexter