我设计了交叉表以显示USERID,NAME,STATUS和SCENARIO等值。方案使用数据立方体中的汇总字段显示在交叉表中。我需要根据以下条件更改用户ID字段的颜色
long long solve(long long N){
long long ans = 0;
long long div, mod;
for (int i = 1; i <= N; i++)
{
div = N/i;
mod = i- N%i;
ans += (div * (div+1) * i)/2;
// For the case when N does not go directly into i,
// e.g. N = 47500, i = 1000, the last 500 need to be removed from the sum
ans -= (mod-1) * div;
printf ("\n i = %d, ans = %lld",i,ans);
}
return ans;
}
我尝试使用USERID上的高亮显示实现此功能,但以下条件不会带来任何错误,但颜色仍然保持不变
if scenario1 == 1 || scenario2 == 1 then USERID is RED
if scenario3 == 1 || scenario4 == 1 then USERID is ORANGE
and so on