- int n, masks, days,cur;
- n = 17, masks = 10, days = 0;
- cur = 2;
- while (masks != n){
- if (cur == 0 || cur == 1)
- masks += 7;
- masks -= 1;
- days += 1;
- cur = (cur + 1) % 7;
- }
- cout << days;
A. 5
B. 6
C. 7
D. 8
- int n, masks, days,cur;
- n = 17, masks = 10, days = 0;
- cur = 2;
- while (masks != n){
- if (cur == 0 || cur == 1)
- masks += 7;
- masks -= 1;
- days += 1;
- cur = (cur + 1) % 7;
- }
- cout << days;
Scratch3.0 全国青少年软件编程等级考试 Python Scratch图形化一级 Scratch图形化四级 Scratch图形化三级 Scratch图形化二级 电子学会