当灯的编号 i 是人的编号 person的整数倍时,对应的第 i 号灯的状态在调整为原状态的相反状态,以下代码正确的是
A: if( person / i == 0) light[i]=!light[i];
B: if( person % i == 0) light[i]=!light[i];
C: if ( i / person == 0) light[i]=!light[i];
D: if (i % person == 0) light[i]=!light[i];
A: if( person / i == 0) light[i]=!light[i];
B: if( person % i == 0) light[i]=!light[i];
C: if ( i / person == 0) light[i]=!light[i];
D: if (i % person == 0) light[i]=!light[i];
举一反三
- 中国大学MOOC: One reason that I may be the last person in Manhattan without a cell phone is that I ________ the excitement of coming home and finding a call light flashing.
- ---- ( ) I trouble you for a light? ----- You ( ), indeed.
- thought I ____ the light, but it is still turn on.
- I hope my explanation _____________(shed light on) their behavior.
- —You have left the light on.—Oh, so I have. I ________ (go) and turn it off.