Skip to content

Instantly share code, notes, and snippets.

View elvircrn's full-sized avatar

Elvir Crnčević elvircrn

  • TU Graz
  • Graz/Sarajevo
View GitHub Profile
@elvircrn
elvircrn / splajn
Last active December 25, 2016 16:56
SplineInterpolator::SplineInterpolator(std::vector<GMath::Point2D> data) : cache(0)
{
DataSizeCheck(data);
sort(data.begin(), data.end());
for (auto& elem : data)
{
x.push_back(elem.first);
y.push_back(elem.second);
@elvircrn
elvircrn / lol
Created December 21, 2016 04:43
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <queue>
#include <cmath>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <sstream>
#include <stdio.h>
int main(void)
{
int i, n;
scanf ("%d", &n);
for (i = 1; i <= n; i++)
{
if (i % 3 != 0 && i % 5 != 0)