#include <iostream>
#include <math.h>
#include <time.h>
 
using namespace std;
 
int main()
{
    int iters = 100;
    double a = 0;
    int c=clock();
    for (int q = 0; q < iters; q++)
        for (int i = 0; i < 100000; i++)
            if (i%2 == 0) a+= sin(i); else a -= sin(i);
    int t=clock()-c;
    cout << "Result: " << a << ", time: " << (double)t/CLOCKS_PER_SEC <<endl;
    return 0;
}