#include <iostream>
#include <cstdio>
#include <math.h>
#define loop1 if(n == y){printf("%10lld% 10lld\n", n, x);t++;}
#define loop2 if(t == 10)break;x++;
using namespace std;
int main()
{
long long n, x = 8, t = 0;
double y;
while(true)
{
y=sqrt((x * x + x) / 2);
n = y;
loop1;
loop2;
}
return 0;
}
#include <cstdio>
#include <math.h>
#define loop1 if(n == y){printf("%10lld% 10lld\n", n, x);t++;}
#define loop2 if(t == 10)break;x++;
using namespace std;
int main()
{
long long n, x = 8, t = 0;
double y;
while(true)
{
y=sqrt((x * x + x) / 2);
n = y;
loop1;
loop2;
}
return 0;
}
No comments:
Post a Comment