输出的是空的??在线等你的答案
c吧
全部回复
仅看楼主
level 6
guyf556 楼主
#include<iostream>
using namespace std;
int main()
{
     int p,e,i,d;
         cin>>p>>e>>i>>d;
         for(int k=0;k<2000;k++)
         {
             p=p+23;
for(int z=0;z<2000;z++)
{    
e+=28;
for(int a=0;a<2000;a++)
     i+=33;
     if((p==e)&&(e==i))
         cout<<"Case 1: the next triple peak occurs in "<<p-d<<" days."<<endl;
}
         }
             return 0;
}
2010年10月29日 10点10分 1
level 5
e永远不等于i,因为每次判断前,i就加了2000*33
2010年11月02日 05点11分 4
1