aboutsummaryrefslogtreecommitdiff
path: root/tests/ii/arithmetic/reference.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ii/arithmetic/reference.cc')
-rw-r--r--tests/ii/arithmetic/reference.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ii/arithmetic/reference.cc b/tests/ii/arithmetic/reference.cc
index 6d3d98f..3e0b27f 100644
--- a/tests/ii/arithmetic/reference.cc
+++ b/tests/ii/arithmetic/reference.cc
@@ -7,7 +7,10 @@ int main() {
std::int64_t a, b;
if (!(std::cin >> a >> b) || b == 0) return 1;
auto small = a % 1000001;
+ int sign = (a > 0) - (a < 0);
+ int band = small >= -10 && small <= 10 ? 2 : 3;
std::cout << (a < b ? "TRUE" : "FALSE") << ':' << a / b << ':' << a % b
- << ':' << small + b << ':' << small - b << ':' << small * b << '\n';
+ << ':' << small + b << ':' << small - b << ':' << small * b
+ << ':' << sign << ':' << band << '\n';
}
}