initial commit

This commit is contained in:
zsq259
2023-10-19 22:35:38 +08:00
commit 9a3bc626ad
61 changed files with 49217 additions and 0 deletions

31
data/Integer2/4.cpp Normal file
View File

@ -0,0 +1,31 @@
/*
Time: 2021-10-20
Test: add & minus (signed)
std Time: 0.16s
Time Limit: 1.00s
*/
#include "int2048.h"
sjtu::int2048 a, b;
int main()
{
int T;
std::cin >> T;
while (T--)
{
std::cin >> a >> b;
std::cout << a + b << '\n' << a - b << '\n';
std::cout << (a -= b) << '\n';
std::cout << (a += b) << '\n';
std::cout << (a + b) - (a - b) << '\n';
b += a;
b += b;
b -= a + (a - b);
std::cout << b << '\n';
}
}