Files
BH-int2048-2023/data/Integer2/15.cpp
2023-10-19 22:35:38 +08:00

29 lines
555 B
C++

/*
Time: 2021-10-22
Test: complexity (mul)
Comment: Task of A Class & Bonus of B Class
std Time: 0.05s
Time Limit: 1.00s
*/
#include "int2048.h"
sjtu::int2048 a, b;
std::string s1, s2;
int main()
{
for (int i = 1; i <= 100; i++)
{
a = 0, b = 0;
s1 = "", s2 = "";
for (int j = 1; j < 5000; j++)
{
s1 += (1ll * (i + j) * 19260817) % 998244353 % 10 + '0';
s2 += (1ll * (i + j) * 998244353) % 19260817 % 10 + '0';
}
a = s1, b = s2;
std::cout << a * b << '\n';
}
}