#include <cstdio>
class Logger {
public:
template<typename T>
static void d(char const TAG, T value)
{
char buffer[64];
snprintf(buffer, sizeof(buffer), "%d", value);
//__android_log_write(ANDROID_LOG_DEBUG, TAG, buffer);
printf("%d", buffer);
}
};
int main() {
Logger::d('k', 123312);
return 0;
}
I2luY2x1ZGUgPGNzdGRpbz4KCmNsYXNzIExvZ2dlciB7CnB1YmxpYzoKCXRlbXBsYXRlPHR5cGVuYW1lIFQ+CglzdGF0aWMgdm9pZCBkKGNoYXIgY29uc3QgVEFHLCBUIHZhbHVlKQoJewoJCWNoYXIgYnVmZmVyWzY0XTsKCQlzbnByaW50ZihidWZmZXIsIHNpemVvZihidWZmZXIpLCAiJWQiLCB2YWx1ZSk7CgkJLy9fX2FuZHJvaWRfbG9nX3dyaXRlKEFORFJPSURfTE9HX0RFQlVHLCBUQUcsIGJ1ZmZlcik7CgkJcHJpbnRmKCIlZCIsIGJ1ZmZlcik7Cgl9Cn07CgppbnQgbWFpbigpIHsKCUxvZ2dlcjo6ZCgnaycsIDEyMzMxMik7CglyZXR1cm4gMDsKfQ==