HDU 1056 HangOver
#include <iostream>#include <cstdio>using namespace std;int main(){ double len; double tmp; int ans; while( cin >> len, len ) { tmp = 0; ans = 1;...
View ArticlePOJ 1004 Financial Management
#include <iostream>#include <cstdio>using std :: cin;using std :: cout;using std :: endl;int main(){ double ans; double tmp; ans = 0; for( int i = 0; i < 12; i++ ) {...
View ArticlePOJ 1005 I Think I Need a Houseboat
/**//******************************************设需要n年设半圆面积为 S,半径为 rS = 50 * n;S = (PI * r * r) / 2;解得 n = (PI * r * r ) / 100;所给点到原点距离 len = sqrt( x * x + y * y );令len = r即可解出...
View ArticleHDU 1097 A hard puzzle
//找规律,每4个数循环一次#include <iostream>#include <cstdio>using namespace std;int main(){ long long a, b; int ans[5]; while(cin >> a >> b) { if( b == 0 ) {...
View Article
More Pages to Explore .....