#include <iostream>
#include <ctime>
#include <cstdint>
using namespace std;
#define ITERATIONS (1000000000)
int main()
{
volatile int64_t x;
clock_t start = clock();
for(int64_t i = ITERATIONS; i > 0;)
{
x = i--;
}
auto first_clock = clock() - start;
start = clock();
for(int64_t j = ITERATIONS; j > 0;)
{
x = --j;
}
auto last_clock = clock() - start;
cout << first_clock << ' ' << last_clock << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3RpbWU+CiNpbmNsdWRlIDxjc3RkaW50Pgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKI2RlZmluZSBJVEVSQVRJT05TICAoMTAwMDAwMDAwMCkKCmludCBtYWluKCkKewogICAgdm9sYXRpbGUgaW50NjRfdCB4OwogICAgY2xvY2tfdCBzdGFydCA9IGNsb2NrKCk7CiAgICBmb3IoaW50NjRfdCBpID0gSVRFUkFUSU9OUzsgaSA+IDA7KQogICAgewogICAgICAgIHggPSBpLS07CiAgICB9CiAgICAKICAgIGF1dG8gZmlyc3RfY2xvY2sgPSBjbG9jaygpIC0gc3RhcnQ7CiAgICBzdGFydCA9IGNsb2NrKCk7CiAgICBmb3IoaW50NjRfdCBqID0gSVRFUkFUSU9OUzsgaiA+IDA7KQogICAgewogICAgICAgIHggPSAtLWo7CiAgICB9CiAgICBhdXRvIGxhc3RfY2xvY2sgPSBjbG9jaygpIC0gc3RhcnQ7CiAgICAKICAgIGNvdXQgPDwgZmlyc3RfY2xvY2sgPDwgJyAnIDw8IGxhc3RfY2xvY2sgPDwgc3RkOjplbmRsOwogICAgCiAgICByZXR1cm4gMDsKfQ==