mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-14 16:38:46 +00:00
14 lines
301 B
C
14 lines
301 B
C
|
#include <algorithm>
|
||
|
#include <ostream>
|
||
|
#include <string>
|
||
|
|
||
|
std::ostream& operator<<(std::ostream& __ostream, __int128 __n) {
|
||
|
std::string __o;
|
||
|
while (__n) {
|
||
|
__o.push_back(__n % 10 + '0');
|
||
|
__n /= 10;
|
||
|
}
|
||
|
std::reverse(__o.begin(), __o.end());
|
||
|
return __ostream << __o;
|
||
|
}
|