链接:https://pan.baidu.com/s/1qDdBkFPakLtCvh8_W2wiog
提取码:x3zg
标签:flag class std turn int amp time space log
链接:https://pan.baidu.com/s/1qDdBkFPakLtCvh8_W2wiog
提取码:x3zg
#include<iostream> using namespace std; int main() { int time, count,teacher,nike, glair; bool flag; time=0; count=1; teacher=nike=glair=0; do { flag=0; time++; if(teacher<9) { flag=1; teacher++; } if(nike<9&&time%2==0) { flag=1; nike++; } if(glair<9&&time%4==0) { flag=1; glair++; } if(flag) count++; }while(teacher+nike+glair<9*3); cout<<count<<endl; return 0; }
标签:flag class std turn int amp time space log
原文地址:https://www.cnblogs.com/kixiaoyuan/p/12702307.html