Upd: 重命名文件夹。这些都是 corner case 测试。

This commit is contained in:
DarkSharpness_XzY
2023-10-22 12:52:37 +08:00
parent aa9ab930dc
commit 7d2a749b74
6 changed files with 3 additions and 5 deletions

30
data/Corner/2.cpp Normal file
View File

@ -0,0 +1,30 @@
/*
Time: 2023-10-20
Test: Custom constructor. Div and mod.
std Time: 0.00s
Time Limit: 1.00s
Notes: Sanity check.
*/
#include "int2048.h"
void sanity_check(sjtu::int2048 &x) {
(0 / x).print(); std::cout << ' ';
(1 / x).print(); std::cout << ' ';
(-1 / x).print();std::cout << ' ';
(0 % x).print(); std::cout << ' ';
(1 % x).print(); std::cout << ' ';
(-1 % x).print();std::cout << '\n';
}
signed main() {
sjtu::int2048 x;
x.read("-1919810");
sanity_check(x);
x = -x;
sanity_check(x);
return 0;
}