2025-06-29 17:43:24 +08:00
|
|
|
//#include"Config.hpp"
|
|
|
|
#include"Architecture.hpp"
|
2025-06-12 14:59:06 +08:00
|
|
|
|
2025-06-12 21:46:53 +08:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include<vector>
|
|
|
|
#include<map>
|
|
|
|
using namespace std;
|
|
|
|
|
2025-06-12 14:59:06 +08:00
|
|
|
int main()
|
|
|
|
{
|
2025-06-29 17:43:24 +08:00
|
|
|
double t = 0;
|
|
|
|
for (int i = 1; i < 80; i++)
|
|
|
|
{
|
|
|
|
t += 1.0 / (double)i;
|
|
|
|
}
|
|
|
|
double k = 0;
|
|
|
|
for (int i = 1; i < 80; i++)
|
|
|
|
{
|
|
|
|
k += 1.0 / (double)i;
|
|
|
|
cout << i << ":\t" << k << "/" << t << "\t=\t" << k / t * 100 << "% current step:\t" <<
|
|
|
|
1.0 / (double)i << endl;
|
|
|
|
}
|
2025-06-12 21:46:53 +08:00
|
|
|
return 0;
|
|
|
|
}
|