# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
19857 | xhae | 창문 (kriii4_C) | C++14 | 1 ms | 1880 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <cstdio>
/**
* Big integer class, optimized for decimal integers.
* Stores and manipulates integers represented as byte arrays,
* where each byte is a decimal digit. If you're looking for
* robust, bug-free, efficient code, keep looking. This is a quick
* and dirty hack. Some day I'll write a templatized BigInt, where
* you will be able to select the base in which to store the
* number. When that day comes, most of this code will be thrown
* away.
*
* BUGS:
* operator-(int) does not work.
*
* BigInt doesn't play nice with long long. Either use int
* or string.
*
* INVARIANTS:
* - capacity is never smaller than 16
* - capacity is not the smallest it can be because every
* modifying member function first grows digits as much as
* it might ever need and then does its job.
* FIELD TESTING:
* - Passed numerous problems on Valladolid, including
* 107, 288, 324, 424, 465, 485, 495, 560, 619, 623, etc.
*
* COMPATIBILITY:
* - This class was written for the g++ compiler and uses some
* of the g++ extensions (like "long double" and the ">?="
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |