#include <bits/stdc++.h>
using namespace std;
int main() {
long long answer = 0;
long long temp = clock();
for (int i = 1; i < 10000000; i++) {
answer += (long long) sqrt(i);
}
cout << "Clock cycles taken: " << clock() - temp << endl;
cout << "CPS: " << CLOCKS_PER_SEC << endl;
cout << "Time taken is " << (double) ((clock() - temp)) / CLOCKS_PER_SEC << endl;
cout << answer << endl;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWxvbmcgbG9uZyBhbnN3ZXIgPSAwOwoJCglsb25nIGxvbmcgdGVtcCA9IGNsb2NrKCk7CgkKCWZvciAoaW50IGkgPSAxOyBpIDwgMTAwMDAwMDA7IGkrKykgewoJCWFuc3dlciArPSAobG9uZyBsb25nKSBzcXJ0KGkpOwoJfQoJCgljb3V0IDw8ICJDbG9jayBjeWNsZXMgdGFrZW46ICIgPDwgY2xvY2soKSAtIHRlbXAgPDwgZW5kbDsKCWNvdXQgPDwgIkNQUzogIiA8PCBDTE9DS1NfUEVSX1NFQyA8PCBlbmRsOwoJY291dCA8PCAiVGltZSB0YWtlbiBpcyAiIDw8IChkb3VibGUpICgoY2xvY2soKSAtIHRlbXApKSAvIENMT0NLU19QRVJfU0VDIDw8IGVuZGw7Cgljb3V0IDw8IGFuc3dlciA8PCBlbmRsOwp9