#7635: C++ TLE...


a0930297172 (滾滾)


#include<iostream>
using namespace std;

int main(){
 int a,b,c,d,t;
 while(cin>>t)
 while(t--){
 cin>>a>>b>>c>>d;
 if(c-b==b-a&&d-c==c-b)
 cout<<d+(d-c);
 else if(c/b==b/a&&d/c==c/b)
 cout<<d*(d/c);
}
 while(1);
 return 0;
 }

不懂...

#7638: Re:C++ TLE...


passerr (20130326 0340 48)


請問while(1);的 ; 是有什麼作用?

看起來像是多餘的