Quantcast
Channel: C++博客-Vontroy-随笔分类-数学题
Browsing latest articles
Browse All 4 View Live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

POJ 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 Article

Image may be NSFW.
Clik here to view.

POJ 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 Article

Image may be NSFW.
Clik here to view.

HDU 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
Browsing latest articles
Browse All 4 View Live




Latest Images